From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 828D41F86C for ; Sun, 29 Nov 2020 20:19:47 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/extsearch: test ->has_threadid Date: Sun, 29 Nov 2020 20:19:47 +0000 Message-Id: <20201129201947.13476-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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(-) 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 $!;