remove unneeded shebangs from tests
[catagits/Catalyst-Runtime.git] / t / aggregate / live_recursion.t
CommitLineData
1627551a 1use strict;
2use warnings;
3
4use FindBin;
42da66a9 5use lib "$FindBin::Bin/../lib";
1627551a 6
7use Test::More tests => 3;
8use Catalyst::Test 'TestApp';
9
d5aec790 10local $^W = 0;
11
c4c4dd19 12SKIP:
13{
14 # Net::HTTP::Methods crashes when talking to a remote server because this
15 # test causes a very long header line to be sent
16 if ( $ENV{CATALYST_SERVER} ) {
17 skip 'Using remote server', 3;
18 }
19
20 ok( my $response = request('http://localhost/recursion_test'), 'Request' );
21 ok( !$response->is_success, 'Response Not Successful' );
22 is( $response->header('X-Catalyst-Error'), 'Deep recursion detected calling "/recursion_test"', 'Deep Recursion Detected' );
23}
2eb2c42f 24