X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fwww_listing.t;h=63ef2eacfd407d510088a6532bc72b34177d5533;hb=860169adcd29341142b7c4a369c09b4ac492bd1e;hp=94c1e5bbbcb0f37ac26aae03b42a802902f712dc;hpb=d42172638f5479f76e73470ad48a679100c3e0d5;p=public-inbox.git diff --git a/t/www_listing.t b/t/www_listing.t index 94c1e5bb..63ef2eac 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2020 all contributors +# Copyright (C) 2019-2021 all contributors # License: AGPL-3.0+ # manifest.js.gz generation and grok-pull integration test use strict; @@ -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');