X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_threads.t;h=4d9a18a963a7db06ca0a0e6ff5b770eadf4a4fbb;hb=f2c10d65222a90ee666a98daeff0120508061b52;hp=82c748aead67222c6b96a21abceae3c7cc4c2aea;hpb=66741f94ac93b7ba0989db3556d0e3fe36c1be87;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_threads.t b/t/optional_threads.t index 82c748a..4d9a18a 100644 --- a/t/optional_threads.t +++ b/t/optional_threads.t @@ -4,12 +4,13 @@ use strict; use warnings; use FindBin; -use lib "$FindBin::Bin/../live/lib"; +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}; @@ -30,7 +31,7 @@ else { no warnings 'redefine'; sub request { my $thr = threads->new( - sub { TestApp->run(@_) }, + sub { Catalyst::Test::local_request('TestApp',@_) }, @_ ); $thr->join;