Skip to content

Commit

Permalink
removed redundant connection test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 4, 2013
1 parent c52aca1 commit 28c3106
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions t/mojo/user_agent.t
Expand Up @@ -504,13 +504,4 @@ ok $tx->success, 'successful';
is $tx->res->code, 200, 'right status';
is $tx->res->body, 'Hi!', 'right content';

# Premature connection close
$port = Mojo::IOLoop->generate_port;
Mojo::IOLoop->server(
{address => '127.0.0.1', port => $port} => sub { Mojo::IOLoop->remove(pop) }
);
$tx = $ua->get("http://localhost:$port/");
ok !$tx->success, 'not successful';
is $tx->error, 'Premature connection close', 'right error';

done_testing();

0 comments on commit 28c3106

Please sign in to comment.