From d99a07c1bc801d2c8fc8cc62b74b4d34ca091f46 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 26 Aug 2025 19:50:47 +0000 Subject: [PATCH] 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. --- t/lei_store.t | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.47.3