lnwallet/test: close database after test

This commit is contained in:
Joost Jager 2020-06-26 13:23:21 +02:00
parent c65f60b101
commit 1c775d131b
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -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)