lnwallet/test: close database after test
This commit is contained in:
parent
c65f60b101
commit
1c775d131b
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user