From: Eric Wong Date: Tue, 26 Aug 2025 19:50:47 +0000 (+0000) Subject: t/lei_store: ensure over.sqlite3 uses WAL X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d99a07c1bc801d2c8fc8cc62b74b4d34ca091f46;p=thirdparty%2Fpublic-inbox.git t/lei_store: ensure over.sqlite3 uses WAL As lei is a single user store, it's always used WAL since it should improve parallelism and I/O patterns. An additional test here will ensure bugs don't slip in where we forget to enable WAL. --- diff --git a/t/lei_store.t b/t/lei_store.t index 17ee0729f..c131f409c 100644 --- a/t/lei_store.t +++ b/t/lei_store.t @@ -34,6 +34,9 @@ $sto->done; my $mi = ($mset->items)[0]; my @kw = PublicInbox::Search::xap_terms('K', $mi->get_document); is_deeply(\@kw, [], 'no flags'); + + my $jm = $es->over->dbh->selectrow_array('PRAGMA journal_mode'); + is $jm, 'wal', 'lei/store over.sqlite3 journal_mode defaults to wal'; } for my $parallel (0, 1) {