Properly close db after running tests

This commit is contained in:
Jamie Holdstock 2021-05-19 06:05:38 +08:00 committed by Jamie Holdstock
parent a8c0ae95ac
commit 8b5cd2a014

View File

@ -70,6 +70,8 @@ func TestDatabase(t *testing.T) {
cancel()
wg.Wait()
db.Close()
os.Remove(testDb)
os.Remove(backupDb)
}