From 860169adcd29341142b7c4a369c09b4ac492bd1e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 23:05:13 -1000 Subject: tests: favor IPv6 IPv4 gets plenty of real-world coverage, and apparently there's Debian buildd hosts which lack IPv4(*). So ensure everything can work on IPv6 and not cause problems for odd setups. (*) https://bugs.debian.org/979432 --- t/v2writable.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 't/v2writable.t') diff --git a/t/v2writable.t b/t/v2writable.t index f5c8313a..f0fa8a79 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -164,12 +164,11 @@ EOF ; close $fh or die "close: $!\n"; my $sock = tcp_server(); - ok($sock, 'sock created'); my $len; my $cmd = [ '-nntpd', '-W0', "--stdout=$out", "--stderr=$err" ]; my $env = { PI_CONFIG => $pi_config }; my $td = start_script($cmd, $env, { 3 => $sock }); - my $host_port = $sock->sockhost . ':' . $sock->sockport; + my $host_port = tcp_host_port($sock); my $n = Net::NNTP->new($host_port); $n->group($group); my $x = $n->xover('1-'); -- cgit v1.2.3-24-ge0c7