diff --git a/lnwallet/transactions_test.go b/lnwallet/transactions_test.go index d0ebafcee..75189d597 100644 --- a/lnwallet/transactions_test.go +++ b/lnwallet/transactions_test.go @@ -986,6 +986,9 @@ func createTestChannelsForVectors(tc *testContext, chanType channeldb.ChannelTyp // Return a clean up function that stops goroutines and removes the test // databases. cleanUpFunc := func() { + dbLocal.Close() + dbRemote.Close() + os.RemoveAll(localPath) os.RemoveAll(remotePath)