lnwallet/test: close database after test

This commit is contained in:
Joost Jager committed 2020-07-06 12:45:15 +02:00
1 parent c65f60b101
commit 1c775d131b
1 file changed
+3
+3
View File
@@ -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)