X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhttpd-https.t;h=939669493254ef990fd2348fc2ec9c30a6a18cb4;hb=3eb26fe04dae68612c841e749abd2848ce78ae59;hp=f6b9806a52c8376c52244bfeaf467718ccecd8f4;hpb=0b84d8600368c67080e683e415f7e502a343316b;p=public-inbox.git 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) {