]> Sergey Matveev's repositories - public-inbox.git/commitdiff
tests: disable daemon workers in a few more places
authorEric Wong <e@80x24.org>
Sun, 24 Nov 2019 00:22:21 +0000 (00:22 +0000)
committerEric Wong <e@80x24.org>
Sun, 24 Nov 2019 21:26:52 +0000 (21:26 +0000)
There were still a few places where we used worker processes
unnecessarily in tests, causing a small amount of unnecessary
overhead.

Followup-to: ad221e9b2852f6c5 ("t/*.t: disable nntpd/httpd worker processes in most tests")
t/httpd-unix.t
t/nntpd.t

index d0c70a72c65f92149b3eed8116ea21dfa6e30f11..2c91828154cd880b12177e5a566240df2724634b 100644 (file)
@@ -24,6 +24,7 @@ END { kill 'TERM', $pid if defined $pid };
 
 my $spawn_httpd = sub {
        my (@args) = @_;
+       push @args, '-W0';
        $pid = fork;
        if ($pid == 0) {
                exec $httpd, @args, "--stdout=$out", "--stderr=$err", $psgi;
index b516ffd1b249c358696d301bf6df079e6466f9f6..4795dc008d58feb841215b5ca2dd9d8ffbc5f4a8 100644 (file)
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -90,7 +90,7 @@ EOF
        }
 
        ok($sock, 'sock created');
-       my $cmd = [ $nntpd, "--stdout=$out", "--stderr=$err" ];
+       my $cmd = [ $nntpd, '-W0', "--stdout=$out", "--stderr=$err" ];
        $pid = spawn_listener(undef, $cmd, [ $sock ]);
        ok(defined $pid, 'forked nntpd process successfully');
        my $host_port = $sock->sockhost . ':' . $sock->sockport;