diff options
Diffstat (limited to 't/www_listing.t')
-rw-r--r-- | t/www_listing.t | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/t/www_listing.t b/t/www_listing.t index 75698ee5..4fcb43ea 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -6,12 +6,8 @@ use warnings; use Test::More; use PublicInbox::Spawn qw(which); use PublicInbox::TestCommon; -my @mods = qw(URI::Escape Plack::Builder Digest::SHA - IO::Compress::Gzip IO::Uncompress::Gunzip HTTP::Tiny); -foreach my $mod (@mods) { - eval("require $mod") or plan skip_all => "$mod missing for $0"; -} - +require_mods(qw(URI::Escape Plack::Builder Digest::SHA + IO::Compress::Gzip IO::Uncompress::Gunzip HTTP::Tiny)); require PublicInbox::WwwListing; my $json = eval { PublicInbox::WwwListing::_json() }; plan skip_all => "JSON module missing: $@" if $@; |