about summary refs log tree commit homepage
path: root/t/nntpd.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-10 21:50:48 +0000
committerEric Wong <e@80x24.org>2021-02-10 21:51:08 +0000
commit7a1fe192b9f63f057a21cb60c5e0e85b2ca34d50 (patch)
tree2904facf7d5eb565155d45bcac3d68b9ae789abc /t/nntpd.t
parentefae1c2f67220c18f57bd1ebdf7115abd4d6c6e0 (diff)
downloadpublic-inbox-7a1fe192b9f63f057a21cb60c5e0e85b2ca34d50.tar.gz
tests: skip properly with git <2.6
Tested with git 1.8.3.1 on CentOS 7.x

`plan skip_all => ...' doesn't work after some tests have run,
we have to call skip() instead.
Diffstat (limited to 't/nntpd.t')
-rw-r--r--t/nntpd.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/nntpd.t b/t/nntpd.t
index 6c100138..18aaccbe 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -13,11 +13,11 @@ use Net::NNTP;
 use Sys::Hostname;
 use POSIX qw(_exit);
 use Digest::SHA;
-use_ok 'PublicInbox::Msgmap';
 
 # t/nntpd-v2.t wraps this for v2
 my $version = $ENV{PI_TEST_VERSION} || 1;
 require_git('2.6') if $version == 2;
+use_ok 'PublicInbox::Msgmap';
 my $lsof = which('lsof');
 my $fast_idle = eval { require Linux::Inotify2; 1 } //
                 eval { require IO::KQueue; 1 };