]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/httpd-async-stream.t
tests: favor IPv6
[public-inbox.git] / xt / httpd-async-stream.t
index f6715c58bc31d97476aa2ee4b20918191b73c0cc..c7039f3e86f31ad93f78933fe724a25f442dc734 100644 (file)
@@ -41,7 +41,7 @@ address = test\@example.com
        # not using multiple workers, here, since we want to increase
        # the chance of tripping concurrency bugs within PublicInbox/HTTP*.pm
        my $cmd = [ '-httpd', "--stdout=$out", "--stderr=$err", '-W0' ];
-       my $host_port = $http->sockhost.':'.$http->sockport;
+       my $host_port = tcp_host_port($http);
        push @$cmd, "-lhttp://$host_port";
        my $url = "$host_port/test/$endpoint";
        print STDERR "# CMD ". join(' ', @$cmd). "\n";