]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/www_listing.t
tests: favor IPv6
[public-inbox.git] / t / www_listing.t
index 1bcbaefbc02328fc4b38e7f1d41865a1d335e440..63ef2eacfd407d510088a6532bc72b34177d5533 100644 (file)
@@ -79,8 +79,7 @@ SKIP: {
        my $cfgfile = "$tmpdir/config";
        my $v2 = "$tmpdir/v2";
        my $sock = tcp_server();
-       ok($sock, 'sock created');
-       my ($host, $port) = ($sock->sockhost, $sock->sockport);
+       my ($host, $port) = tcp_host_port($sock);
        my @clone = qw(git clone -q -s --bare);
        is(xsys(@clone, $bare->{git_dir}, $alt), 0, 'clone shared repo');