about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-09 05:04:41 -0700
committerEric Wong <e@80x24.org>2021-10-09 21:31:10 +0000
commit8ffed15abbec68463ff3f3105d6651c8a4b5d813 (patch)
treebe0af668a622e5ff6e48af95433d56a4b2b160c5 /t
parent2eac33fffcf1757675a959e69eb34f04e446bd25 (diff)
downloadpublic-inbox-8ffed15abbec68463ff3f3105d6651c8a4b5d813.tar.gz
This mode only checks history for missed/stale messages
and doesn't attempt to reindex messages which are already
indexed.
Diffstat (limited to 't')
-rw-r--r--t/extsearch.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/extsearch.t b/t/extsearch.t
index ca586f61..896e2704 100644
--- a/t/extsearch.t
+++ b/t/extsearch.t
@@ -336,6 +336,11 @@ if ('reindex catches missed messages') {
         $es->{xdb}->reopen;
         $mset = $es->mset("mid:$new->{mid}");
         is($mset->size, 0, 'stale mid gone Xapian');
+
+        ok(run_script([qw(-extindex --reindex --all --fast), "$home/extindex"],
+                        undef, $opt), '--reindex w/ --fast');
+        ok(!run_script([qw(-extindex --all --fast), "$home/extindex"],
+                        undef, $opt), '--fast alone makes no sense');
 }
 
 if ('reindex catches content bifurcation') {