diff --git a/peer/brontide_test.go b/peer/brontide_test.go index 38ef2e5e7..a0a354c1c 100644 --- a/peer/brontide_test.go +++ b/peer/brontide_test.go @@ -2,7 +2,6 @@ package peer import ( "bytes" - "io/ioutil" "testing" "time" @@ -1003,10 +1002,7 @@ func TestPeerCustomMessage(t *testing.T) { t.Parallel() // Set up node Alice. - alicePath, err := ioutil.TempDir("", "alicedb") - require.NoError(t, err) - - dbAlice, err := channeldb.Open(alicePath) + dbAlice, err := channeldb.Open(t.TempDir()) require.NoError(t, err) aliceKey, err := btcec.NewPrivateKey()