From: Marcus Ramberg Date: Fri, 7 Jul 2006 07:05:27 +0000 (+0000) Subject: fix threads test. X-Git-Tag: 5.7099_04~400 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=7a2005ce7816016fc8c67a41ad793da33a864872 fix threads test. --- diff --git a/t/optional_threads.t b/t/optional_threads.t index 50a6ecd..4d9a18a 100644 --- a/t/optional_threads.t +++ b/t/optional_threads.t @@ -10,6 +10,7 @@ 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;