diff options
Diffstat (limited to 't/httpd-https.t')
-rw-r--r-- | t/httpd-https.t | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/t/httpd-https.t b/t/httpd-https.t index f6b9806a..93966949 100644 --- a/t/httpd-https.t +++ b/t/httpd-https.t @@ -24,14 +24,7 @@ my $tmpdir = tempdir('pi-httpd-https-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 $https = IO::Socket::INET->new(%opts); +my $https = tcp_server(); my ($pid, $tail_pid); END { foreach ($pid, $tail_pid) { |