X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Faltid.t;h=816f5f5b78007b9f5a6a68b324bad1a83157489a;hb=refs%2Ftags%2Fv1.6.1;hp=670a39633755149c3260bb5c3b7470e1fabfeb3e;hpb=0283273a14e1871955f6a9132f4f3f7884ec8a3f;p=public-inbox.git diff --git a/t/altid.t b/t/altid.t index 670a3963..816f5f5b 100644 --- a/t/altid.t +++ b/t/altid.t @@ -45,12 +45,13 @@ EOF } { - my $ro = PublicInbox::Search->new($ibx); - my $msgs = $ro->query("gmane:1234"); - is_deeply([map { $_->mid } @$msgs], ['a@example.com'], 'got one match'); + my $mset = $ibx->search->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 = $ro->query("gmane:666"); - is_deeply([], $msgs, 'body did NOT match'); + $mset = $ibx->search->mset('gmane:666'); + is($mset->size, 0, 'body did NOT match'); }; {