mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-04 07:26:28 +08:00
close db after test case
This commit is contained in:
@@ -1405,6 +1405,10 @@ func TestIssue51(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
db.Close()
|
||||
}()
|
||||
|
||||
if _, err := db.Exec(`
|
||||
CREATE TABLE fileHash (
|
||||
"hash" TEXT NOT NULL PRIMARY KEY,
|
||||
|
Reference in New Issue
Block a user