The Xapian search index is required for the NNTP server, so
there's no point in calling system() for it like we do in
other tests. This should speed up the test a small amount.
my $cfgpfx = "publicinbox.$group";
my $nntpd = 'blib/script/public-inbox-nntpd';
my $init = 'blib/script/public-inbox-init';
my $cfgpfx = "publicinbox.$group";
my $nntpd = 'blib/script/public-inbox-nntpd';
my $init = 'blib/script/public-inbox-init';
-my $index = 'blib/script/public-inbox-index';
use_ok 'PublicInbox::Import';
use_ok 'PublicInbox::Git';
use_ok 'PublicInbox::Import';
use_ok 'PublicInbox::Git';
my $im = PublicInbox::Import->new($git, 'test', $addr);
$im->add($mime);
$im->done;
my $im = PublicInbox::Import->new($git, 'test', $addr);
$im->add($mime);
$im->done;
- is(0, system($index, $maindir), 'indexed git dir');
+ my $s = PublicInbox::SearchIdx->new($maindir, 1);
+ $s->index_sync;
}
ok($sock, 'sock created');
}
ok($sock, 'sock created');