X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F061_basic_deferred_w_io.t;fp=t%2F061_basic_deferred_w_io.t;h=d7403a2fa0f421c75a18b216da89a7a8f2f2c6e4;hb=0b1731882300cdb05aa9fe09716da7a9a03cd00d;hp=512c97e2f283dc814528d6fa27e8150b5a1ef57d;hpb=a99b06bc698f521b77656a1015fb4c572e39dfeb;p=gitmo%2FMooseX-Storage.git diff --git a/t/061_basic_deferred_w_io.t b/t/061_basic_deferred_w_io.t index 512c97e..d7403a2 100644 --- a/t/061_basic_deferred_w_io.t +++ b/t/061_basic_deferred_w_io.t @@ -9,11 +9,12 @@ use File::Spec::Functions; my $dir = tempdir; +use Test::Requires { + 'IO::AtomicFile' => 0.01, # skip all if not installed + 'JSON::Any' => 0.01, +}; + BEGIN { - eval "use IO::AtomicFile"; - plan skip_all => "IO::AtomicFile is required for this test" if $@; - eval "use JSON::Any"; - plan skip_all => "JSON::Any is required for this test" if $@; plan tests => 20; use_ok('MooseX::Storage'); }