since _context is a weak ref it can go out of scope before all the errors are finishe...
[catagits/Catalyst-Runtime.git] / t / optional_stress.t
index c0f2597..9e73cc5 100644 (file)
@@ -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 $@;