Skip to content

Commit

Permalink
the timer is not necessary anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 8, 2014
1 parent e5382a9 commit 51b5de5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions t/mojo/reactor_ev.t
Expand Up @@ -257,15 +257,14 @@ Mojo::IOLoop->client(
my ($stream, $chunk) = @_;
$buffer .= $chunk;
return unless $buffer eq 'test321';
Mojo::IOLoop->singleton->reactor->stop;
EV::break(EV::BREAK_ALL());
}
);
$client_running = Mojo::IOLoop->is_running;
eval { Mojo::IOLoop->start };
$client_err = $@;
}
);
Mojo::IOLoop->timer(1 => sub { EV::break(EV::BREAK_ALL()) });
EV::run();
ok !Mojo::IOLoop->is_running, 'loop is not running';
like $server_err, qr/^Mojo::IOLoop already running/, 'right error';
Expand Down

0 comments on commit 51b5de5

Please sign in to comment.