From 1c775d131bbd93ee888f34030b0e2a89e60ebe46 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Fri, 26 Jun 2020 13:23:21 +0200 Subject: [PATCH] lnwallet/test: close database after test --- lnwallet/transactions_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnwallet/transactions_test.go b/lnwallet/transactions_test.go index d0ebafcee..75189d597 100644 --- a/lnwallet/transactions_test.go +++ b/lnwallet/transactions_test.go @@ -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)