mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-05 07:46:50 +08:00
close db after test case
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user