diff options
Diffstat (limited to 't/nntpd-tls.t')
-rw-r--r-- | t/nntpd-tls.t | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/t/nntpd-tls.t b/t/nntpd-tls.t index e3ecdd4f..82b63f3e 100644 --- a/t/nntpd-tls.t +++ b/t/nntpd-tls.t @@ -37,15 +37,8 @@ my $pi_config = "$tmpdir/pi_config"; my $group = 'test-nntpd-tls'; my $addr = $group . '@example.com'; my $nntpd = 'blib/script/public-inbox-nntpd'; -my %opts = ( - LocalAddr => '127.0.0.1', - ReuseAddr => 1, - Proto => 'tcp', - Type => SOCK_STREAM, - Listen => 1024, -); -my $starttls = IO::Socket::INET->new(%opts); -my $nntps = IO::Socket::INET->new(%opts); +my $starttls = tcp_server(); +my $nntps = tcp_server(); my ($pid, $tail_pid); END { foreach ($pid, $tail_pid) { |