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 $!;
ok($pi_cfg->ALL, '->ALL');
my $ibx = $pi_cfg->{-by_newsgroup}->{'v2.example'};
my $ret = $pi_cfg->ALL->nntp_xref_for($ibx, $ibx->over->get_art(1));
- is_deeply($ret, ['v1.example:1'], '->nntp_xref_for');
+ is_deeply($ret, { 'v1.example' => 1, 'v2.example' => 1 },
+ '->nntp_xref_for');
}
SKIP: {