* [PATCH] t/extsearch: test ->has_threadid
@ 2020-11-29 20:19 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-11-29 20:19 UTC (permalink / raw)
To: meta
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 $!;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-29 20:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-29 20:19 [PATCH] t/extsearch: test ->has_threadid Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).