From 860169adcd29341142b7c4a369c09b4ac492bd1e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 23:05:13 -1000 Subject: tests: favor IPv6 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 --- t/psgi_v2.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/psgi_v2.t') diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 7ab60adc..81355f04 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -35,7 +35,7 @@ my $run_httpd = sub { my ($out, $err) = map { "$inboxdir/std$_.log" } qw(out err); my $cmd = [ qw(-httpd -W0), "--stdout=$out", "--stderr=$err" ]; my $td = start_script($cmd, $env, { 3 => $sock }); - my ($h, $p) = ($sock->sockhost, $sock->sockport); + my ($h, $p) = tcp_host_port($sock); local $ENV{PLACK_TEST_EXTERNALSERVER_URI} = "http://$h:$p"; Plack::Test::ExternalServer::test_psgi(client => $client); $td->join('TERM'); -- cgit v1.2.3-24-ge0c7