fix busy timeout

This commit is contained in:
glebarez
2022-01-19 16:01:26 +01:00
parent 619a5668ea
commit b66e9ee40f

View File

@@ -803,7 +803,7 @@ func TestIssue20(t *testing.T) {
os.RemoveAll(tempDir) os.RemoveAll(tempDir)
}() }()
db, err := sql.Open("sqlite", filepath.Join(tempDir, "foo.db")+"?_pragma=busy_timeout%3d10000") db, err := sql.Open("sqlite", filepath.Join(tempDir, "foo.db")+"?_pragma=busy_timeout(5000)")
if err != nil { if err != nil {
t.Fatalf("foo.db open fail: %v", err) t.Fatalf("foo.db open fail: %v", err)
} }