close db after test case

This commit is contained in:
Jason DeBettencourt
2021-06-10 21:25:36 -04:00
parent ff775b367c
commit cc37e09f4c

View File

@@ -1405,6 +1405,10 @@ func TestIssue51(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
defer func() {
db.Close()
}()
if _, err := db.Exec(` if _, err := db.Exec(`
CREATE TABLE fileHash ( CREATE TABLE fileHash (
"hash" TEXT NOT NULL PRIMARY KEY, "hash" TEXT NOT NULL PRIMARY KEY,