X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_threads.t;fp=t%2Foptional_threads.t;h=baa40894dbed44bb1bb49e14157c62e6bf2b6eef;hp=05b4c965b828a550970f5745f3e250997f3abf51;hb=4853fb50e3c7138bbe513fed2b22574a2d988ed1;hpb=845bfcd2f888e02d8f952088eaeb169fbbae9841 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;