X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_stress.t;h=9e73cc5125f7951402442db68110b3b8fa0f7b06;hp=c0f259770e9227c918c3fa37e4ee47a7b89213ab;hb=cea573d8055680f12b061aa8adcf0b54f576bb7b;hpb=15f0ede8ee33bc9b0c002221a8e62f59e8b7b7e2 diff --git a/t/optional_stress.t b/t/optional_stress.t index c0f2597..9e73cc5 100644 --- a/t/optional_stress.t +++ b/t/optional_stress.t @@ -1,20 +1,19 @@ -#!perl - use strict; use warnings; +use Test::More; +BEGIN { + plan skip_all => 'set TEST_STRESS to enable this test' + unless $ENV{TEST_STRESS}; +} + use FindBin; use lib "$FindBin::Bin/lib"; - -use Test::More; use Catalyst::Test 'TestApp'; our ( $iters, $tests ); BEGIN { - plan skip_all => 'set TEST_STRESS to enable this test' - unless $ENV{TEST_STRESS}; - eval "use YAML"; plan skip_all => 'YAML is required for this test' if $@;