about summary refs log tree commit homepage
path: root/t/search-thr-index.t
diff options
context:
space:
mode:
Diffstat (limited to 't/search-thr-index.t')
-rw-r--r--t/search-thr-index.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/search-thr-index.t b/t/search-thr-index.t
index 3ddef809..2aa97bff 100644
--- a/t/search-thr-index.t
+++ b/t/search-thr-index.t
@@ -49,8 +49,8 @@ foreach (reverse split(/\n\n/, $data)) {
 
 my $prev;
 foreach my $mid (@mids) {
-        my $res = $rw->{over}->get_thread($mid);
-        is(3, $res->{total}, "got all messages from $mid");
+        my $msgs = $rw->{over}->get_thread($mid);
+        is(3, scalar(@$msgs), "got all messages from $mid");
 }
 
 $rw->commit_txn_lazy;