[Catalyst-commits] r12567 -
Catalyst-Runtime/5.80/branches/psgi/t/aggregate
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Sat Jan 9 17:49:12 GMT 2010
Author: rafl
Date: 2010-01-09 17:49:11 +0000 (Sat, 09 Jan 2010)
New Revision: 12567
Modified:
Catalyst-Runtime/5.80/branches/psgi/t/aggregate/live_component_controller_action_streaming.t
Log:
There's no Content-Length for streaming responses.
Modified: Catalyst-Runtime/5.80/branches/psgi/t/aggregate/live_component_controller_action_streaming.t
===================================================================
--- Catalyst-Runtime/5.80/branches/psgi/t/aggregate/live_component_controller_action_streaming.t 2010-01-09 17:49:05 UTC (rev 12566)
+++ Catalyst-Runtime/5.80/branches/psgi/t/aggregate/live_component_controller_action_streaming.t 2010-01-09 17:49:11 UTC (rev 12567)
@@ -10,7 +10,7 @@
BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
-use Test::More tests => 15*$iters;
+use Test::More;
use Catalyst::Test 'TestApp';
if ( $ENV{CAT_BENCHMARK} ) {
@@ -37,7 +37,8 @@
}
# XXX: Length should be undef here, but HTTP::Request::AsCGI sets it
- is( $response->content_length, 12, 'Response Content-Length' );
+ ok(!defined $response->content_length, 'No Content-Length for streaming responses');
+ is(length $response->content, 12, 'Response content' );
}
is( $response->content,, <<'EOF', 'Content is a stream' );
@@ -80,3 +81,5 @@
is( $response->content, "\0" x $size, 'Content is read from filehandle' );
}
}
+
+done_testing;
More information about the Catalyst-commits
mailing list