diff options
author | Eric Wong <e@80x24.org> | 2022-09-29 17:48:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-29 18:05:57 +0000 |
commit | 6da44a6151dfb59147d8a114548de1951909f9d1 (patch) | |
tree | 0f43c7545392f9acd6c460bb7418bd71bc8f4805 /t | |
parent | 33f2cbeeca73c35dffcbfba53a614c0516f55cdc (diff) | |
download | public-inbox-6da44a6151dfb59147d8a114548de1951909f9d1.tar.gz |
The versions of these modules which ship with CentOS 7.x did not support IPv6 properly.
Diffstat (limited to 't')
-rw-r--r-- | t/extsearch.t | 4 | ||||
-rw-r--r-- | t/nntpd.t | 3 | ||||
-rw-r--r-- | t/v2writable.t | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/t/extsearch.t b/t/extsearch.t index 2d7375d6..6cbe5262 100644 --- a/t/extsearch.t +++ b/t/extsearch.t @@ -13,8 +13,6 @@ require PublicInbox::Search; use_ok 'PublicInbox::ExtSearch'; use_ok 'PublicInbox::ExtSearchIdx'; use_ok 'PublicInbox::OverIdx'; -my $sock = tcp_server(); -my $host_port = tcp_host_port($sock); my ($home, $for_destroy) = tmpdir(); local $ENV{HOME} = $home; mkdir "$home/.public-inbox" or BAIL_OUT $!; @@ -125,6 +123,8 @@ EOF SKIP: { require_mods(qw(Net::NNTP), 1); + my $sock = tcp_server(); + my $host_port = tcp_host_port($sock); my ($out, $err) = ("$home/nntpd.out.log", "$home/nntpd.err.log"); my $cmd = [ '-nntpd', '-W0', "--stdout=$out", "--stderr=$err" ]; my $td = start_script($cmd, undef, { 3 => $sock }); @@ -2,10 +2,9 @@ # Copyright (C) all contributors <meta@public-inbox.org> # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> use strict; use v5.10.1; use PublicInbox::TestCommon; -require_mods(qw(DBD::SQLite)); +require_mods(qw(DBD::SQLite Net::NNTP)); use PublicInbox::Eml; use Socket qw(IPPROTO_TCP TCP_NODELAY); -use Net::NNTP; use Sys::Hostname; use POSIX qw(_exit); use Digest::SHA; diff --git a/t/v2writable.t b/t/v2writable.t index 477621e2..ad946338 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -149,7 +149,7 @@ SELECT COUNT(*) FROM over WHERE num > 0 } { - use Net::NNTP; + require_mods('Net::NNTP', 1); my $err = "$inboxdir/stderr.log"; my $out = "$inboxdir/stdout.log"; my $group = 'inbox.comp.test.v2writable'; |