]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd.t
t/nntpd*.t: require IO::Socket::SSL 2.007 for Net::NNTP tests
[public-inbox.git] / t / nntpd.t
index 1c5ae8d7a5beaf0858620b7fc4d09655ba8b6624..fdb4bee42b639554d4c093ecb6a374c880d053fa 100644 (file)
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -104,6 +104,10 @@ EOF
        SKIP: {
                $n->can('starttls') or
                        skip('Net::NNTP too old to support STARTTLS', 2);
+               eval {
+                       require IO::Socket::SSL;
+                       IO::Socket::SSL->VERSION(2.007);
+               } or skip('IO::Socket::SSL <2.007 not supported by Net::NNTP');
                ok(!$n->starttls, 'STARTTLS fails when unconfigured');
                is($n->code, 580, 'got 580 code on server w/o TLS');
        };