X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_recursion.t;h=6e558774246c7f2adc745ffd586ce4f56b2c92ad;hb=7a7d7af5e9a6ba3cd59dab7995114c10216143f3;hp=fa8ced1809fbd871a1825b03f547872be50d8b0c;hpb=1627551a60fe1e220d390a565f793dea27cd36a6;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_recursion.t b/t/live_recursion.t index fa8ced1..6e55877 100644 --- a/t/live_recursion.t +++ b/t/live_recursion.t @@ -9,6 +9,17 @@ use lib "$FindBin::Bin/lib"; use Test::More tests => 3; use Catalyst::Test 'TestApp'; -ok( my $response = request('http://localhost/recursion_test'), 'Request' ); -ok( !$response->is_success, 'Response Not Successful' ); -is( $response->header('X-Catalyst-Error'), 'Deep recursion detected calling "/recursion_test"', 'Deep Recursion Detected' ); +local $^W = 0; + +SKIP: +{ + # Net::HTTP::Methods crashes when talking to a remote server because this + # test causes a very long header line to be sent + if ( $ENV{CATALYST_SERVER} ) { + skip 'Using remote server', 3; + } + + ok( my $response = request('http://localhost/recursion_test'), 'Request' ); + ok( !$response->is_success, 'Response Not Successful' ); + is( $response->header('X-Catalyst-Error'), 'Deep recursion detected calling "/recursion_test"', 'Deep Recursion Detected' ); +}