]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/purge.t
v2writable: allow setting nproc via creat options
[public-inbox.git] / t / purge.t
index b518c26fb0aab488042547c2982c68bdfa9108d0..574935e08e72f1b01eb5700e6a07ba38952d0cb1 100644 (file)
--- a/t/purge.t
+++ b/t/purge.t
@@ -35,12 +35,11 @@ Hello World
 
 EOF
 
-local $ENV{NPROC} = '1';
 my $cfgfile = "$tmpdir/config";
 local $ENV{PI_CONFIG} = $cfgfile;
 open my $cfg_fh, '>', $cfgfile or die "open: $!";
 
-my $v2w = PublicInbox::V2Writable->new($ibx, 1);
+my $v2w = PublicInbox::V2Writable->new($ibx, {nproc => 1});
 my $mime = PublicInbox::MIME->new($raw);
 ok($v2w->add($mime), 'add message to be purged');
 $v2w->done;