From 4cc4ad59287a4d040a993267065739f416da7397 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 29 Nov 2020 20:19:47 +0000 Subject: t/extsearch: test ->has_threadid Since has_threadid predates the existence of ExtSearch, we can be certain the Xapian DB can collapse by threadid. --- t/extsearch.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 't') 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 $!; -- cgit v1.2.3-24-ge0c7