X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_threads.t;h=9ed878fe6bf307125e31428b835800cd3f99ce31;hb=3453aef8adb75e439e4c05e89b6e2d193f148cd9;hp=05b4c965b828a550970f5745f3e250997f3abf51;hpb=c7ded7aaf69e506924a5406349fd665c7717acb8;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_threads.t b/t/optional_threads.t index 05b4c96..9ed878f 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; @@ -43,7 +44,7 @@ sub request { TestApp::Controller::Action::Default->begin TestApp::Controller::Action::Default->default TestApp::View::Dump::Request->process - TestApp->end + TestApp::Controller::Root->end ]; my $expected = join( ", ", @expected );