lnwallet: use T.TempDir to create temporary test directory

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
Eng Zer Jun committed 2022-08-24 09:03:05 +08:00
1 parent ca5c695526
commit 9acd53a5de
4 files changed
+21 -62

No files matched your search

+1 -2
View File
@@ -252,8 +252,7 @@ func serializeTxWitness(txWitness wire.TxWitness) ([]byte, error) {
// TestSignPsbt tests the PSBT signing functionality.
func TestSignPsbt(t *testing.T) {
w, _, cleanup := newTestWallet(t, netParams, seedBytes)
defer cleanup()
w, _ := newTestWallet(t, netParams, seedBytes)
testCases := []struct {
name string