]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_attach.t
tests: favor IPv6
[public-inbox.git] / t / psgi_attach.t
index 65d704bf87b800d15c453f36d0d384e362b2e5d6..f53b75100955bb41f62a9e4768d83424343d26a8 100644 (file)
@@ -116,7 +116,7 @@ SKIP: {
        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);
 }