]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2reindex.t
v2writable: allow setting nproc via creat options
[public-inbox.git] / t / v2reindex.t
index 8a3071b734af5c763a8192cfafd74e3919e57f7a..c416629c3f4155cc5bc0e5642f64a9b4952747fd 100644 (file)
@@ -39,14 +39,13 @@ my $mime = PublicInbox::MIME->create(
        ],
        body => $agpl,
 );
-local $ENV{NPROC} = 2;
 my $minmax;
 my $msgmap;
 my ($mark1, $mark2, $mark3, $mark4);
 {
        my %config = %$ibx_config;
        my $ibx = PublicInbox::Inbox->new(\%config);
-       my $im = PublicInbox::V2Writable->new($ibx, 1);
+       my $im = PublicInbox::V2Writable->new($ibx, {nproc => 1});
        my $im0 = $im->importer();
        foreach my $i (1..10) {
                $mime->header_set('Message-Id', "<$i\@example.com>");