Skip to content

Commit

Permalink
test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 26, 2012
1 parent 81be554 commit e3b5a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/mojo/response.t
Expand Up @@ -304,7 +304,7 @@ is $res->headers->content_length, undef, 'right "Content-Length" value';
$res->parse("HTTP/1.1 200 OK\x0d\x0a");
$res->parse("Content-Type: text/plain\x0d\x0a");
$res->parse("Transfer-Encoding: chunked\x0d\x0a\x0d\x0a");
$res->parse('4' x 1000);
$res->parse('a' x 1000);
ok $res->is_finished, 'response is finished';
ok $res->content->is_finished, 'content is finished';
is(($res->error)[0], 'Maximum buffer size exceeded', 'right error');
Expand All @@ -324,7 +324,7 @@ is $res->headers->content_length, undef, 'right "Content-Length" value';
$res->parse("Content-Length: 420\x0d\x0a");
$res->parse('Content-Type: multipart/form-data; bo');
$res->parse("undary=----------0xKhTmLbOuNdArY\x0d\x0a\x0d\x0a");
$res->parse(4 x 200);
$res->parse('a' x 200);
ok $res->is_finished, 'response is finished';
ok $res->content->is_finished, 'content is finished';
is(($res->error)[0], 'Maximum buffer size exceeded', 'right error');
Expand Down

0 comments on commit e3b5a66

Please sign in to comment.