X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;ds=sidebyside;f=t%2Fpsgi_v2.t;h=81355f04b1b0694b0bb30b6023bc107cdedbde0b;hb=860169adcd29341142b7c4a369c09b4ac492bd1e;hp=7ab60adcc46f00f33cec66b2b64ccbeb4903204a;hpb=fb6aa4da304125a3fb7932e1335be85ff260e031;p=public-inbox.git 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');