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