]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/git-http-backend.t
config: simplify lookup* methods
[public-inbox.git] / t / git-http-backend.t
index 946cd86aa36fa09a497d609e23b7c1d202264d3c..c2a0465335c5b7cf94ffa782553995703b7dd50d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 #
 # Ensure buffering behavior in -httpd doesn't cause runaway memory use
@@ -7,7 +7,6 @@ use strict;
 use warnings;
 use Test::More;
 use File::Temp qw/tempdir/;
-use IO::Socket::INET;
 use POSIX qw(setsid);
 
 my $git_dir = $ENV{GIANT_GIT_DIR};
@@ -45,7 +44,7 @@ my $get_maxrss = sub {
 
 {
        ok($sock, 'sock created');
-       my $cmd = [ $httpd, "--stdout=$out", "--stderr=$err", $psgi ];
+       my $cmd = [ $httpd, '-W0', "--stdout=$out", "--stderr=$err", $psgi ];
        ok(defined($pid = spawn_listener(undef, $cmd, [$sock])),
           'forked httpd process successfully');
 }