X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Flive_engine_response_headers.t;fp=t%2Faggregate%2Flive_engine_response_headers.t;h=03a2418ad458af294b9415dbcecb1d6f724603ec;hp=6cf9fdca59bb9726fb5bb280a33d47bb47824d2b;hb=dc356cbaae15dbfe3bb0385f4cec5f6d07c08df5;hpb=211ba63e9dbd4db9d56ce0e6c1d1f95aa4d12c3f diff --git a/t/aggregate/live_engine_response_headers.t b/t/aggregate/live_engine_response_headers.t index 6cf9fdc..03a2418 100644 --- a/t/aggregate/live_engine_response_headers.t +++ b/t/aggregate/live_engine_response_headers.t @@ -37,22 +37,11 @@ foreach my $method (qw(HEAD GET)) { 'HEAD method content is empty' ); } elsif ( $method eq 'GET' ) { - # method name is echo'd back in content-body (twice under debug), - # which accounts for difference in content length. In normal - # cases the Content-Length should be the same regardless - # of whether it's a GET or HEAD request. - SKIP: - { - if ( $ENV{CATALYST_SERVER} ) { - skip "Using remote server", 2; - } - my $diff = TestApp->debug ? 2 : 1; - is( $response->header('Content-Length'), - $content_length - $diff, 'Response Header Content-Length' ) - or diag $response->content; - is( length($response->content), - $response->header('Content-Length'), - 'GET method content' ); - } + is( $response->header('Content-Length'), + $content_length, 'Response Header Content-Length' ) + or diag $response->content; + is( length($response->content), + $response->header('Content-Length'), + 'GET method content' ); } }