X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_threads.t;h=baa40894dbed44bb1bb49e14157c62e6bf2b6eef;hb=99e429e8f8443db0f9dd120f5db52052ea1dd2a6;hp=05b4c965b828a550970f5745f3e250997f3abf51;hpb=c7ded7aaf69e506924a5406349fd665c7717acb8;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_threads.t b/t/optional_threads.t index 05b4c96..baa4089 100644 --- a/t/optional_threads.t +++ b/t/optional_threads.t @@ -3,18 +3,19 @@ use strict; use warnings; +use Test::More; +BEGIN { + plan skip_all => 'set TEST_THREADS to enable this test' + unless $ENV{TEST_THREADS}; +} + use FindBin; use lib "$FindBin::Bin/lib"; - -use Test::More; use Catalyst::Test 'TestApp'; use Catalyst::Request; use Config; use HTTP::Response; -plan skip_all => 'set TEST_THREADS to enable this test' - unless $ENV{TEST_THREADS}; - if ( $Config{useithreads} && !$ENV{CATALYST_SERVER} ) { require threads; plan tests => 3;