]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/mda_filter_rubylang.t
search: replace ->query with ->mset
[public-inbox.git] / t / mda_filter_rubylang.t
index 5b6bf28b862737542cc128635b44f82a5ec9502a..754d52f75cdf0331776dd87bcd6de7807f7df14a 100644 (file)
@@ -48,10 +48,10 @@ EOF
        my $ibx = $config->lookup_name($v);
 
        # make sure all serials are searchable:
-       my ($tot, $msgs);
        for my $i (1..2) {
-               ($tot, $msgs) = $ibx->search->query("alerts:$i");
-               is($tot, 1, "got one result for alerts:$i");
+               my $mset = $ibx->search->mset("alerts:$i");
+               is($mset->size, 1, "got one result for alerts:$i");
+               my $msgs = $ibx->search->mset_to_smsg($ibx, $mset);
                is($msgs->[0]->{mid}, "a.$i\@b.com", "got expected MID for $i");
        }
        is_deeply([], \@warn, 'no warnings');