5 use lib "$FindBin::Bin/../lib";
7 use Test::More tests => 6;
8 use Catalyst::Test 'TestApp';
10 # phaylon noticed that refactored was truncating output on large images.
11 # This test tests 100K and 1M output content.
14 one => 'x' x (100 * 1024),
15 two => 'y' x (1024 * 1024),
18 for my $action ( keys %{$expected} ) {
19 ok( my $response = request('http://localhost/engine/response/large/' . $action ),
21 ok( $response->is_success, 'Response Successful 2xx' );
23 is( length( $response->content ), length( $expected->{$action} ), 'Length OK' );