Use unsafe journal_mode during Pool test

Can't use WAL, as it thread sanitizer reports false positives. The default,
delete, causes busy timeouts. Let's try the unsafe memory!
This commit is contained in:
Karl Seguin
2026-04-20 18:14:29 +08:00
parent b226a9ed52
commit fcd3d1cd14

View File

@@ -117,6 +117,11 @@ test "Sqlite: Pool" {
// because the tests might be run on really slow hardware and we
// want to avoid having a busy timeout.
try conn.exec("pragma synchronous=off", .{});
// Also not safe, but we're trying to avoid busy timeouts without using
// WAL mode, which can trigger false positives in thread-sanitizer
try conn.exec("pragma journal_mode=memory", .{});
try conn.exec("create table pool_test (cnt int not null)", .{});
try conn.exec("insert into pool_test (cnt) values (0)", .{});
}