about summary refs log tree commit homepage
path: root/t/altid.t
diff options
context:
space:
mode:
Diffstat (limited to 't/altid.t')
-rw-r--r--t/altid.t9
1 files changed, 4 insertions, 5 deletions
diff --git a/t/altid.t b/t/altid.t
index 0f3b86c1..d4f6152e 100644
--- a/t/altid.t
+++ b/t/altid.t
@@ -50,12 +50,11 @@ my $altid = [ "serial:gmane:file=$alt_file" ];
 
 {
         my $ro = PublicInbox::Search->new($git_dir, $altid);
-        my $res = $ro->query("gmane:1234");
-        is($res->{total}, 1, 'got one match');
-        is($res->{msgs}->[0]->mid, 'a@example.com');
+        my $msgs = $ro->query("gmane:1234");
+        is_deeply([map { $_->mid } @$msgs], ['a@example.com'], 'got one match');
 
-        $res = $ro->query("gmane:666");
-        is($res->{total}, 0, 'body did NOT match');
+        $msgs = $ro->query("gmane:666");
+        is_deeply([], $msgs, 'body did NOT match');
 };
 
 {