Skip to content

Commit

Permalink
relax shutdown tests a little for slow machines
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 15, 2012
1 parent 7901ed6 commit 6590376
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@

3.31 2012-08-15
- Improved documentation.
- Improved tests.

3.30 2012-08-14
- Added te method to Mojo::Headers.
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/ioloop.t
Expand Up @@ -102,7 +102,7 @@ isa_ok $handle, 'IO::Socket', 'right reference';
my $time = time;
Mojo::IOLoop->start;
Mojo::IOLoop->one_tick;
ok time < ($time + 3), 'stopped automatically';
ok time < ($time + 10), 'stopped automatically';

# Stream
$port = Mojo::IOLoop->generate_port;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/reactor_ev.t
Expand Up @@ -31,7 +31,7 @@ ok $triggered, 'reactor waited for one event';
my $time = time;
Mojo::IOLoop->start;
Mojo::IOLoop->one_tick;
ok time < ($time + 3), 'stopped automatically';
ok time < ($time + 10), 'stopped automatically';

# Listen
my $port = Mojo::IOLoop->generate_port;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/reactor_poll.t
Expand Up @@ -31,7 +31,7 @@ ok $triggered, 'reactor waited for one event';
my $time = time;
Mojo::IOLoop->start;
Mojo::IOLoop->one_tick;
ok time < ($time + 3), 'stopped automatically';
ok time < ($time + 10), 'stopped automatically';

# Listen
my $port = Mojo::IOLoop->generate_port;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/user_agent.t
Expand Up @@ -136,7 +136,7 @@ is $post, 'Premature connection close', 'right error';
# The poll reactor stops when there are no events being watched anymore
my $time = time;
Mojo::IOLoop->start;
ok time < ($time + 3), 'stopped automatically';
ok time < ($time + 10), 'stopped automatically';

# GET / (non-blocking)
$ua = Mojo::UserAgent->new(ioloop => Mojo::IOLoop->singleton);
Expand Down

0 comments on commit 6590376

Please sign in to comment.