about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/v2writable.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 771e8c17..2088f3fe 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -108,10 +108,10 @@ if ('ensure git configs are correct') {
         ok($im->add($mime), 'message with multiple Message-ID');
         $im->done;
         my @found;
-        $ibx->search->reopen;
-        $ibx->search->each_smsg_by_mid('abcde@1', sub { push @found, @_; 1 });
+        my $srch = $ibx->search;
+        $srch->reopen->each_smsg_by_mid('abcde@1', sub { push @found, @_; 1 });
         is(scalar(@found), 1, 'message found by first MID');
-        $ibx->search->each_smsg_by_mid('abcde@2', sub { push @found, @_; 1 });
+        $srch->reopen->each_smsg_by_mid('abcde@2', sub { push @found, @_; 1 });
         is(scalar(@found), 2, 'message found by second MID');
         is($found[0]->{doc_id}, $found[1]->{doc_id}, 'same document');
         ok($found[1]->{doc_id} > 0, 'doc_id is positive');