about summary refs log tree commit homepage
path: root/t/www_listing.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-15 08:21:24 +0000
committerEric Wong <e@80x24.org>2020-12-19 09:32:08 +0000
commitd42172638f5479f76e73470ad48a679100c3e0d5 (patch)
treef934fbc068bfc9135fa80d7046c47086a4da4771 /t/www_listing.t
parent6cdb84af2c75b3c66a35c8c4973f455da15dd0a4 (diff)
downloadpublic-inbox-d42172638f5479f76e73470ad48a679100c3e0d5.tar.gz
We'll probably be using JSON more in the future, so make
it easier to require in tests
Diffstat (limited to 't/www_listing.t')
-rw-r--r--t/www_listing.t8
1 files changed, 3 insertions, 5 deletions
diff --git a/t/www_listing.t b/t/www_listing.t
index 63613371..94c1e5bb 100644
--- a/t/www_listing.t
+++ b/t/www_listing.t
@@ -7,14 +7,12 @@ use Test::More;
 use PublicInbox::Spawn qw(which);
 use PublicInbox::TestCommon;
 use PublicInbox::Import;
-require_mods(qw(URI::Escape Plack::Builder Digest::SHA
+require_mods(qw(json URI::Escape Plack::Builder Digest::SHA
                 IO::Compress::Gzip IO::Uncompress::Gunzip HTTP::Tiny));
 require PublicInbox::WwwListing;
 require PublicInbox::ManifestJsGz;
-my $json = do {
-        no warnings 'once';
-        $PublicInbox::ManifestJsGz::json;
-} or plan skip_all => "JSON module missing";
+use PublicInbox::Config;
+my $json = PublicInbox::Config::json();
 
 use_ok 'PublicInbox::Git';