summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/jwk.t2
-rw-r--r--t/pk_ed25519.t6
-rw-r--r--t/wycheproof.t2
3 files changed, 7 insertions, 3 deletions
diff --git a/t/jwk.t b/t/jwk.t
index 14385203..d4ec8bb5 100644
--- a/t/jwk.t
+++ b/t/jwk.t
@@ -2,7 +2,7 @@ use strict;
use warnings;
use Test::More;
-plan skip_all => "No JSON::* module installed" unless eval { require JSON::PP } || eval { require JSON::XS } || eval { require Cpanel::JSON::XS };
+plan skip_all => "JSON module not installed" unless eval { require JSON };
plan tests => 97;
use Crypt::PK::RSA;
diff --git a/t/pk_ed25519.t b/t/pk_ed25519.t
index b724af20..28368dcc 100644
--- a/t/pk_ed25519.t
+++ b/t/pk_ed25519.t
@@ -1,6 +1,10 @@
use strict;
use warnings;
-use Test::More tests => 91;
+
+use Test::More;
+
+plan skip_all => "JSON module not installed" unless eval { require JSON };
+plan tests => 91;
use Crypt::PK::Ed25519;
use Crypt::Misc qw(read_rawfile);
diff --git a/t/wycheproof.t b/t/wycheproof.t
index 8f6cb26c..37eced53 100644
--- a/t/wycheproof.t
+++ b/t/wycheproof.t
@@ -6,7 +6,7 @@ use warnings;
use Test::More;
-plan skip_all => "No JSON::* module installed" unless eval { require JSON::PP } || eval { require JSON::XS } || eval { require Cpanel::JSON::XS };
+plan skip_all => "JSON module not installed" unless eval { require JSON };
#plan skip_all => "Temporarily disabled";
plan tests => 14339;