Skip to content
Browse files

made online test a little more reliable

  • Loading branch information...
1 parent b6b51d3 commit d328b04f6465247f82ae0c66e600cab3b2970b0d @kraih committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 t/mojo/user_agent_online.t
View
3 t/mojo/user_agent_online.t
@@ -41,7 +41,8 @@ $ua->get(
);
$loop->start;
$ua = undef;
-$loop->one_tick;
+$loop->timer(0.25 => sub { shift->stop });
+$loop->start;
ok !$loop->stream($id), 'loop not tainted';
is $code, 301, 'right status';

0 comments on commit d328b04

Please sign in to comment.
Something went wrong with that request. Please try again.