From: Eric Wong Date: Sun, 29 Nov 2020 20:19:47 +0000 (+0000) Subject: t/extsearch: test ->has_threadid X-Git-Tag: v1.7.0~1589 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4cc4ad59287a4d040a993267065739f416da7397;p=public-inbox.git t/extsearch: test ->has_threadid Since has_threadid predates the existence of ExtSearch, we can be certain the Xapian DB can collapse by threadid. --- 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 $!;