diff options
author | Eric Wong <e@80x24.org> | 2020-11-28 05:09:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-29 02:25:50 +0000 |
commit | 2d3fc25afe7435992236ac143039b24248c5e74d (patch) | |
tree | 45ab6a07e5575fb59f2947eaeddf82e561eed8c3 /t | |
parent | 4b3294b7d5513db0368745f7c6e8e923fbf2a744 (diff) | |
download | public-inbox-2d3fc25afe7435992236ac143039b24248c5e74d.tar.gz |
nntp: XPATH uses ->ALL extindex, too
Another 30-40% speedup when testing against a local lore.kernel.org mirror. In either case, we'll consistently sort the response for ease-of-testing and client-side cache-friendliness.
Diffstat (limited to 't')
-rw-r--r-- | t/extsearch.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/extsearch.t b/t/extsearch.t index f5855558..4f1dbadf 100644 --- a/t/extsearch.t +++ b/t/extsearch.t @@ -74,9 +74,11 @@ EOF SKIP: { require_mods(qw(Net::NNTP), 1); my ($out, $err) = ("$home/nntpd.out.log", "$home/nntpd.err.log"); - my $cmd = [ '-nntpd', '-W0' ]; #, "--stdout=$out", "--stderr=$err" ]; + my $cmd = [ '-nntpd', '-W0', "--stdout=$out", "--stderr=$err" ]; my $td = start_script($cmd, undef, { 3 => $sock }); my $n = Net::NNTP->new($host_port); + my @xp = $n->xpath('<testmessage@example.com>'); + is_deeply(\@xp, [ qw(v1.example/1 v2.example/1) ]); $n->group('v1.example'); my $res = $n->head(1); @$res = grep(/^Xref: /, @$res); |