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;h=03a2418ad458af294b9415dbcecb1d6f724603ec;hp=a0663e16f6584d8093c772caa2591e4f80f774ac;hb=7064f69b1dfb59d1f3bad647b2097d0320acce8a;hpb=9af4ee013b23e7241d4664ea39952fa3b20f4b7f diff --git a/t/aggregate/live_engine_response_headers.t b/t/aggregate/live_engine_response_headers.t index a0663e1..03a2418 100644 --- a/t/aggregate/live_engine_response_headers.t +++ b/t/aggregate/live_engine_response_headers.t @@ -37,20 +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, 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; - } - is( $response->header('Content-Length'), - $content_length - 1, 'Response Header Content-Length' ); - 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' ); } }