X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Faltid_v2.t;h=f04b547bd0aeed196cf026501e923e4e749010c1;hb=80b887f29b2ec71d025b4c266a1c26314758994c;hp=01ed9ed48dbc377a56bf9bf8c8265142faa62b37;hpb=62b80b61d334361677e26e9ddb966e6bc5f8635d;p=public-inbox.git diff --git a/t/altid_v2.t b/t/altid_v2.t index 01ed9ed4..f04b547b 100644 --- a/t/altid_v2.t +++ b/t/altid_v2.t @@ -41,11 +41,12 @@ hello world gmane:666 EOF $v2w->done; -my $msgs = $ibx->search->reopen->query("gmane:1234"); +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'); -$msgs = $ibx->search->query("gmane:666"); -is_deeply([], $msgs, 'body did NOT match'); +$mset = $ibx->search->mset('gmane:666'); +is($mset->size, 0, 'body did NOT match'); done_testing();