Fix BSD locks.

This commit is contained in:
Nuno Cruces
2024-08-30 01:27:57 +01:00
parent 3806c1cc23
commit 78473b4b37
2 changed files with 19 additions and 2 deletions

View File

@@ -45,12 +45,19 @@ func Test_wal(t *testing.T) {
t.Skip("skipping without shared memory")
}
var iter int
if testing.Short() {
iter = 1000
} else {
iter = 2500
}
name := "file:" +
filepath.ToSlash(filepath.Join(t.TempDir(), "test.db")) +
"?_pragma=busy_timeout(10000)" +
"&_pragma=journal_mode(wal)" +
"&_pragma=synchronous(off)"
testParallel(t, name, 1000)
testParallel(t, name, iter)
testIntegrity(t, name)
}