diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-19 08:14:34 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-19 08:16:34 +0000 |
commit | ad281240644ee370c75d95b35ad7833863257286 (patch) | |
tree | fd8b3a3d57b7f0115fb91c4ecefa42d5b93a826b /t/v2writable.t | |
parent | dd83a896a7eb718dcd49560d0aab967f1f481883 (diff) | |
download | public-inbox-ad281240644ee370c75d95b35ad7833863257286.tar.gz |
Stopping and starting a bunch of processes to look up duplicates or removals is inefficient. Take advantage of checkpointing in "git fast-import" and transactions in Xapian and SQLite.
Diffstat (limited to 't/v2writable.t')
-rw-r--r-- | t/v2writable.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/v2writable.t b/t/v2writable.t index 404c8651..7d276da7 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -55,7 +55,7 @@ if ('ensure git configs are correct') { { my @warn; local $SIG{__WARN__} = sub { push @warn, @_ }; - is(undef, $im->add($mime), 'obvious duplicate rejected'); + is($im->add($mime), undef, 'obvious duplicate rejected'); like(join(' ', @warn), qr/resent/, 'warned about resent message'); @warn = (); @@ -105,6 +105,7 @@ 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 }); is(scalar(@found), 1, 'message found by first MID'); $ibx->search->each_smsg_by_mid('abcde@2', sub { push @found, @_; 1 }); |