Properly close db after running tests
This commit is contained in:
parent
a8c0ae95ac
commit
8b5cd2a014
@ -70,6 +70,8 @@ func TestDatabase(t *testing.T) {
|
||||
cancel()
|
||||
wg.Wait()
|
||||
|
||||
db.Close()
|
||||
|
||||
os.Remove(testDb)
|
||||
os.Remove(backupDb)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user