]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2mirror.t
tests: favor IPv6
[public-inbox.git] / t / v2mirror.t
index ebad2566605a79dbbc25d2689e67deba4564da66..12e3fcd0403600b891e4868a0ec7fb8e4a81f989 100644 (file)
@@ -64,10 +64,9 @@ $v2w->done;
 $ibx->cleanup;
 
 my $sock = tcp_server();
-ok($sock, 'sock created');
 my $cmd = [ '-httpd', '-W0', "--stdout=$tmpdir/out", "--stderr=$tmpdir/err" ];
 my $td = start_script($cmd, undef, { 3 => $sock });
-my ($host, $port) = ($sock->sockhost, $sock->sockport);
+my ($host, $port) = tcp_host_port($sock);
 $sock = undef;
 
 my @cmd;