]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2writable.t
v2writable: allow disabling parallelization
[public-inbox.git] / t / v2writable.t
index 771e8c1722efe7df3aa114ed144228c5bee89aa8..2088f3fe2f4de47c3560886d2e24477d9c628d1f 100644 (file)
@@ -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');