X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Faltid_v2.t;h=f04b547bd0aeed196cf026501e923e4e749010c1;hb=80b887f29b2ec71d025b4c266a1c26314758994c;hp=28a047d992eff345fe10d1c0dc85a72b1cf9b2a6;hpb=0283273a14e1871955f6a9132f4f3f7884ec8a3f;p=public-inbox.git diff --git a/t/altid_v2.t b/t/altid_v2.t index 28a047d9..f04b547b 100644 --- a/t/altid_v2.t +++ b/t/altid_v2.t @@ -41,10 +41,12 @@ hello world gmane:666 EOF $v2w->done; -my $msgs = $ibx->search->reopen->query("gmane:1234"); -is_deeply([map { $_->mid } @$msgs], ['a@example.com'], 'got one match'); -$msgs = $ibx->search->query("gmane:666"); -is_deeply([], $msgs, 'body did NOT match'); +my $mset = $ibx->search->reopen->mset('gmane:1234'); +my $msgs = $ibx->search->mset_to_smsg($ibx, $mset); +$msgs = [ map { $_->{mid} } @$msgs ]; +is_deeply($msgs, ['a@example.com'], 'got one match'); +$mset = $ibx->search->mset('gmane:666'); +is($mset->size, 0, 'body did NOT match'); done_testing();