Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed a few typos
  • Loading branch information
kraih committed May 13, 2013
1 parent 2a09b30 commit 3c5884d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions t/mojo/user_agent.t
Expand Up @@ -316,14 +316,14 @@ $ua->once(
$tx = $ua->get('/echo' => 'Hello World!');
ok !$tx->success, 'not successful';
is(($tx->error)[0], 'Maximum message size exceeded', 'right error');
is(($tx->error)[1], undef, 'no code');
is(($tx->error)[1], undef, 'no status');
ok $tx->res->is_limit_exceeded, 'limit is exceeded';

# 404 response
$tx = $ua->get('/does_not_exist');
ok !$tx->success, 'not successful';
is(($tx->error)[0], 'Not Found', 'right error');
is(($tx->error)[1], 404, 'right code');
is(($tx->error)[1], 404, 'right status');

# Introspect
my $req = my $res = '';
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/websocket.t
Expand Up @@ -180,7 +180,7 @@ $ua->websocket(
);
Mojo::IOLoop->start;
ok !$ws, 'not a WebSocket';
is $code, 426, 'right code';
is $code, 426, 'right status';
ok $body =~ /^(\d+)failed!$/, 'right content';
is $1, 15, 'right timeout';

Expand Down

0 comments on commit 3c5884d

Please sign in to comment.