X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=xt%2Fnntpd-validate.t;h=83f024f984ebdf9f56d45c433fd919201ba9ead7;hb=860169adcd29341142b7c4a369c09b4ac492bd1e;hp=efe97c027a43ba7c076698cbbd15d154f1ce3d93;hpb=fb6aa4da304125a3fb7932e1335be85ff260e031;p=public-inbox.git diff --git a/xt/nntpd-validate.t b/xt/nntpd-validate.t index efe97c02..83f024f9 100644 --- a/xt/nntpd-validate.t +++ b/xt/nntpd-validate.t @@ -169,8 +169,7 @@ sub make_local_server { open my $fh, '>', $_ or die "truncate: $!"; } my $sock = tcp_server(); - ok($sock, 'sock created'); - $host_port = $sock->sockhost . ':' . $sock->sockport; + $host_port = tcp_host_port($sock); # not using multiple workers, here, since we want to increase # the chance of tripping concurrency bugs within PublicInbox/NNTP*.pm