lnwallet/test: close database after test
This commit is contained in:
1 file changed
+3
@@ -986,6 +986,9 @@ func createTestChannelsForVectors(tc *testContext, chanType channeldb.ChannelTyp
|
|||||||
// Return a clean up function that stops goroutines and removes the test
|
// Return a clean up function that stops goroutines and removes the test
|
||||||
// databases.
|
// databases.
|
||||||
cleanUpFunc := func() {
|
cleanUpFunc := func() {
|
||||||
|
dbLocal.Close()
|
||||||
|
dbRemote.Close()
|
||||||
|
|
||||||
os.RemoveAll(localPath)
|
os.RemoveAll(localPath)
|
||||||
os.RemoveAll(remotePath)
|
os.RemoveAll(remotePath)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user