about summary refs log tree commit homepage
path: root/t/git-http-backend.t
diff options
context:
space:
mode:
Diffstat (limited to 't/git-http-backend.t')
-rw-r--r--t/git-http-backend.t9
1 files changed, 1 insertions, 8 deletions
diff --git a/t/git-http-backend.t b/t/git-http-backend.t
index fc2d5462..946cd86a 100644
--- a/t/git-http-backend.t
+++ b/t/git-http-backend.t
@@ -24,14 +24,7 @@ my $tmpdir = tempdir('pi-git-http-backend-XXXXXX', TMPDIR => 1, CLEANUP => 1);
 my $err = "$tmpdir/stderr.log";
 my $out = "$tmpdir/stdout.log";
 my $httpd = 'blib/script/public-inbox-httpd';
-my %opts = (
-        LocalAddr => '127.0.0.1',
-        ReuseAddr => 1,
-        Proto => 'tcp',
-        Type => SOCK_STREAM,
-        Listen => 1024,
-);
-my $sock = IO::Socket::INET->new(%opts);
+my $sock = tcp_server();
 my $host = $sock->sockhost;
 my $port = $sock->sockport;
 my $pid;