about summary refs log tree commit homepage
path: root/t/extsearch.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-09-29 17:48:31 +0000
committerEric Wong <e@80x24.org>2022-09-29 18:05:57 +0000
commit6da44a6151dfb59147d8a114548de1951909f9d1 (patch)
tree0f43c7545392f9acd6c460bb7418bd71bc8f4805 /t/extsearch.t
parent33f2cbeeca73c35dffcbfba53a614c0516f55cdc (diff)
downloadpublic-inbox-6da44a6151dfb59147d8a114548de1951909f9d1.tar.gz
The versions of these modules which ship with CentOS 7.x did not
support IPv6 properly.
Diffstat (limited to 't/extsearch.t')
-rw-r--r--t/extsearch.t4
1 files changed, 2 insertions, 2 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 });