]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/altid_v2.t
search: replace ->query with ->mset
[public-inbox.git] / t / altid_v2.t
index 01ed9ed48dbc377a56bf9bf8c8265142faa62b37..f04b547bd0aeed196cf026501e923e4e749010c1 100644 (file)
@@ -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();