Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
give graceful shutdown tests a little more time
  • Loading branch information
kraih committed Feb 21, 2015
1 parent c51d113 commit 8c92714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/mojo/ioloop.t
Expand Up @@ -265,7 +265,7 @@ $loop->on(finish => sub { $finish++ });
$loop->stop_gracefully;
$loop->remove(
$loop->client({port => Mojo::IOLoop::Server->generate_port} => sub { }));
$loop->timer(3 => sub { shift->stop; $err = 'failed' });
$loop->timer(5 => sub { shift->stop; $err = 'failed' });
$loop->start;
ok !$err, 'no error';
is $finish, 1, 'finish event has been emitted once';
Expand All @@ -276,7 +276,7 @@ $loop = Mojo::IOLoop->new->max_accepts(1);
$id = $loop->server({address => '127.0.0.1'} => sub { shift; shift->close });
$port = $loop->acceptor($id)->port;
$loop->client({port => $port} => sub { });
$loop->timer(3 => sub { shift->stop; $err = 'failed' });
$loop->timer(5 => sub { shift->stop; $err = 'failed' });
$loop->start;
ok !$err, 'no error';
is $loop->max_accepts, 1, 'right value';
Expand Down

0 comments on commit 8c92714

Please sign in to comment.