diff options
author | Eric Wong <e@80x24.org> | 2021-02-07 23:05:13 -1000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-08 22:07:43 +0000 |
commit | 860169adcd29341142b7c4a369c09b4ac492bd1e (patch) | |
tree | f08dcf8bd04efaeb0904a6cec40665c107482cac /xt/git-http-backend.t | |
parent | fb6aa4da304125a3fb7932e1335be85ff260e031 (diff) | |
download | public-inbox-860169adcd29341142b7c4a369c09b4ac492bd1e.tar.gz |
IPv4 gets plenty of real-world coverage, and apparently there's Debian buildd hosts which lack IPv4(*). So ensure everything can work on IPv6 and not cause problems for odd setups. (*) https://bugs.debian.org/979432
Diffstat (limited to 'xt/git-http-backend.t')
-rw-r--r-- | xt/git-http-backend.t | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xt/git-http-backend.t b/xt/git-http-backend.t index dcff72cc..adadebb0 100644 --- a/xt/git-http-backend.t +++ b/xt/git-http-backend.t @@ -19,8 +19,7 @@ my ($tmpdir, $for_destroy) = tmpdir(); my $err = "$tmpdir/stderr.log"; my $out = "$tmpdir/stdout.log"; my $sock = tcp_server(); -my $host = $sock->sockhost; -my $port = $sock->sockport; +my ($host, $port) = tcp_host_port($sock); my $td; my $get_maxrss = sub { @@ -37,7 +36,6 @@ my $get_maxrss = sub { }; { - ok($sock, 'sock created'); my $cmd = [ '-httpd', '-W0', "--stdout=$out", "--stderr=$err", $psgi ]; $td = start_script($cmd, undef, { 3 => $sock }); } |