mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
peer: use T.TempDir
to create temporary test directory
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
parent
f3dec8fbb0
commit
71185d46fb
1 changed files with 1 additions and 5 deletions
|
@ -2,7 +2,6 @@ package peer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"io/ioutil"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -1003,10 +1002,7 @@ func TestPeerCustomMessage(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
// Set up node Alice.
|
// Set up node Alice.
|
||||||
alicePath, err := ioutil.TempDir("", "alicedb")
|
dbAlice, err := channeldb.Open(t.TempDir())
|
||||||
require.NoError(t, err)
|
|
||||||
|
|
||||||
dbAlice, err := channeldb.Open(alicePath)
|
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
aliceKey, err := btcec.NewPrivateKey()
|
aliceKey, err := btcec.NewPrivateKey()
|
||||||
|
|
Loading…
Add table
Reference in a new issue