]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/lei_store: ensure over.sqlite3 uses WAL
authorEric Wong <e@80x24.org>
Tue, 26 Aug 2025 19:50:47 +0000 (19:50 +0000)
committerEric Wong <e@80x24.org>
Thu, 28 Aug 2025 18:48:19 +0000 (18:48 +0000)
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.

t/lei_store.t

index 17ee0729f3aafe288da612158bb7f9826ced64a0..c131f409cd1bbdb3bf785f78e7090b178a3322d7 100644 (file)
@@ -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) {