X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhttpd-https.t;h=265febe5ea843f7afb2691ab43657c1a5c8aafde;hb=a09f678d8254064af7ca6dcfb3c3f84b5ae37b51;hp=1d2e4d5c25e0aa51da150d5985808b9277865c1c;hpb=f1259e56d75b8f06a40fb466bee51a399cc317c5;p=public-inbox.git diff --git a/t/httpd-https.t b/t/httpd-https.t index 1d2e4d5c..265febe5 100644 --- a/t/httpd-https.t +++ b/t/httpd-https.t @@ -4,11 +4,9 @@ use strict; use warnings; use Test::More; use Socket qw(SOCK_STREAM IPPROTO_TCP SOL_SOCKET); +use PublicInbox::TestCommon; # IO::Poll is part of the standard library, but distros may split them off... -foreach my $mod (qw(IO::Socket::SSL IO::Poll)) { - eval "require $mod"; - plan skip_all => "$mod missing for $0" if $@; -} +require_mods(qw(IO::Socket::SSL IO::Poll)); my $cert = 'certs/server-cert.pem'; my $key = 'certs/server-key.pem'; unless (-r $key && -r $cert) { @@ -17,7 +15,6 @@ unless (-r $key && -r $cert) { } use_ok 'PublicInbox::TLS'; use_ok 'IO::Socket::SSL'; -use PublicInbox::TestCommon; my $psgi = "./t/httpd-corner.psgi"; my ($tmpdir, $for_destroy) = tmpdir(); my $err = "$tmpdir/stderr.log";