mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
lnwallet/test: close database after test
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user