]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/extsearch: test ->has_threadid
authorEric Wong <e@80x24.org>
Sun, 29 Nov 2020 20:19:47 +0000 (20:19 +0000)
committerEric Wong <e@80x24.org>
Mon, 30 Nov 2020 00:47:36 +0000 (00:47 +0000)
Since has_threadid predates the existence of ExtSearch, we can
be certain the Xapian DB can collapse by threadid.

t/extsearch.t

index 10b14baf19f1cfac16c5cb2aa444ab74657db878..2a1b05c769d4c67ea2d0bb813f1968962f7f543a 100644 (file)
@@ -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 $!;