about summary refs log tree commit homepage
path: root/t/nntpd-tls.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-18 03:36:43 +0000
committerEric Wong <e@80x24.org>2019-12-19 03:59:17 +0000
commit684d26cecc0891261783be179909b0e434692b25 (patch)
treea1d78c9f23792d0272ee542c06cd347b848cffc6 /t/nntpd-tls.t
parent55b11c59936125aab26694e17631828c7ea9954e (diff)
downloadpublic-inbox-684d26cecc0891261783be179909b0e434692b25.tar.gz
These usages of file-local global variables make the *.t files
incompatible with run_script().  Instead, use anonymous subs,
"our", or pass the parameter as appropriate.
Diffstat (limited to 't/nntpd-tls.t')
-rw-r--r--t/nntpd-tls.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/nntpd-tls.t b/t/nntpd-tls.t
index bbcc04c0..c6dceaaa 100644
--- a/t/nntpd-tls.t
+++ b/t/nntpd-tls.t
@@ -28,7 +28,7 @@ require './t/common.perl';
 require PublicInbox::InboxWritable;
 require PublicInbox::MIME;
 require PublicInbox::SearchIdx;
-my $need_zlib;
+our $need_zlib;
 eval { require Compress::Raw::Zlib } or
         $need_zlib = 'Compress::Raw::Zlib missing';
 my $version = 2; # v2 needs newer git