Skip to content

Commit

Permalink
a few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 16, 2014
1 parent 6c95141 commit 73e2515
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/mojo/request.t
Expand Up @@ -16,7 +16,9 @@ my $finished;
$req->max_message_size($req->headers->max_line_size);
my $huge = 'a=b; ' x $req->max_message_size;
$req->on(finish => sub { $finished = shift->is_finished });
ok !$req->is_limit_exceeded, 'limit is not exceeded';
$req->parse("PUT /upload HTTP/1.1\x0d\x0aCookie: $huge\x0d\x0a");
ok $req->is_limit_exceeded, 'limit is exceeded';
$req->parse("Content-Length: 0\x0d\x0a\x0d\x0a");
ok $finished, 'finish event has been emitted';
ok $req->is_finished, 'request is finished';
Expand Down

0 comments on commit 73e2515

Please sign in to comment.