X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_loop.t;h=34fea5f9b73baccb68267fc106f3a368f2940918;hb=26dd6d9f6575fe782e78d6845fff3447e5ba5744;hp=23f2ad293208c3de28d0993550db62a025cfb3f3;hpb=1627551a60fe1e220d390a565f793dea27cd36a6;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_loop.t b/t/live_loop.t index 23f2ad2..34fea5f 100644 --- a/t/live_loop.t +++ b/t/live_loop.t @@ -9,6 +9,15 @@ use lib "$FindBin::Bin/lib"; use Test::More tests => 3; use Catalyst::Test 'TestApp'; -ok( my $response = request('http://localhost/loop_test'), 'Request' ); -ok( $response->is_success, 'Response Successful 2xx' ); -ok( $response->header('X-Class-Forward-Test-Method'), 'Loop OK' ); +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/loop_test'), 'Request' ); + ok( $response->is_success, 'Response Successful 2xx' ); + ok( $response->header('X-Class-Forward-Test-Method'), 'Loop OK' ); +}