X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Freplace.t;fp=t%2Freplace.t;h=c4dcb89dec1673f02def9001d299e6f71e14dd19;hb=8722adec7acac538c1cb92de6d53002a4e4e33b8;hp=cef4e7aa6cbe6e57ebaed2c5998a436f62b43f38;hpb=5df08b6cd4931e87c1cf676014256d00e3cdfc2c;p=public-inbox.git diff --git a/t/replace.t b/t/replace.t index cef4e7aa..c4dcb89d 100644 --- a/t/replace.t +++ b/t/replace.t @@ -33,7 +33,7 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000 Top secret info about my house in Malibu... EOF - my $im = PublicInbox::InboxWritable->new($ibx, {nproc=>1})->importer; + my $im = PublicInbox::InboxWritable->new($ibx, {nproc=>1})->importer(0); # fake a bunch of epochs $im->{rotate_bytes} = $opt->{rotate_bytes} if $opt->{rotate_bytes}; @@ -145,10 +145,12 @@ EOF is($smsg->{subject}, 'redacted', 'after subject'); is($smsg->{mid}, 'replace@example.com', 'before MID'); } + # $git->cleanup; # needed if $im->{parallel}; @warn = (); is($im->replace($orig, $repl), undef, 'no-op replace returns undef'); is($im->purge($orig), undef, 'no-op purge returns undef'); is_deeply(\@warn, [], 'no warnings on noop'); + # $im->done; # needed if $im->{parallel} } sub pad_msgs {