mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 09:35:59 -04:00
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:
@@ -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)", .{});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user