about summary refs log tree commit homepage
path: root/t/v2-add-remove-add.t
diff options
context:
space:
mode:
Diffstat (limited to 't/v2-add-remove-add.t')
-rw-r--r--t/v2-add-remove-add.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/v2-add-remove-add.t b/t/v2-add-remove-add.t
index b6c58872..c8d12d34 100644
--- a/t/v2-add-remove-add.t
+++ b/t/v2-add-remove-add.t
@@ -35,8 +35,8 @@ ok($im->add($mime), 'message added');
 ok($im->remove($mime), 'message added');
 ok($im->add($mime), 'message added again');
 $im->done;
-my $res = $ibx->recent({limit => 1000});
-is($res->{msgs}->[0]->{mid}, 'a-mid@b', 'message exists in history');
-is(scalar @{$res->{msgs}}, 1, 'only one message in history');
+my $msgs = $ibx->recent({limit => 1000});
+is($msgs->[0]->{mid}, 'a-mid@b', 'message exists in history');
+is(scalar @$msgs, 1, 'only one message in history');
 
 done_testing();