about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-11-29 20:19:47 +0000
committerEric Wong <e@80x24.org>2020-11-30 00:47:36 +0000
commit4cc4ad59287a4d040a993267065739f416da7397 (patch)
treecda95f0f9467ab42bd2306a214e1b8db4e7a6433
parent1ba98a18196aa46a398b25db4dfaa9df7877f6b7 (diff)
downloadpublic-inbox-4cc4ad59287a4d040a993267065739f416da7397.tar.gz
t/extsearch: test ->has_threadid
Since has_threadid predates the existence of ExtSearch, we can
be certain the Xapian DB can collapse by threadid.
-rw-r--r--t/extsearch.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/extsearch.t b/t/extsearch.t
index 10b14baf..2a1b05c7 100644
--- a/t/extsearch.t
+++ b/t/extsearch.t
@@ -53,7 +53,10 @@ run_script(['-mda', '--no-precheck'], $env, { 0 => $fh }) or BAIL_OUT '-mda';
 run_script(['-index', "$home/v1test"]) or BAIL_OUT "index $?";
 
 ok(run_script([qw(-extindex --all), "$home/extindex"]), 'extindex init');
-
+{
+        my $es = PublicInbox::ExtSearch->new("$home/extindex");
+        ok($es->has_threadid, '->has_threadid');
+}
 
 { # TODO: -extindex should write this to config
         open $fh, '>>', $cfg_path or BAIL_OUT $!;