diff options
author | Eric Wong <e@80x24.org> | 2020-11-29 20:19:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-30 00:47:36 +0000 |
commit | 4cc4ad59287a4d040a993267065739f416da7397 (patch) | |
tree | cda95f0f9467ab42bd2306a214e1b8db4e7a6433 | |
parent | 1ba98a18196aa46a398b25db4dfaa9df7877f6b7 (diff) | |
download | public-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.t | 5 |
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 $!; |