-
-
Save anonymous/e2f93a9db7dd9bee1ed3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/t/mojo/ioloop.t b/t/mojo/ioloop.t | |
index bb11be9..e775cbc 100644 | |
--- a/t/mojo/ioloop.t | |
+++ b/t/mojo/ioloop.t | |
@@ -273,9 +273,9 @@ is $finish, 1, 'finish event has been emitted once'; | |
# Graceful shutdown (max_accepts) | |
$err = ''; | |
$loop = Mojo::IOLoop->new->max_accepts(1); | |
-$id = $loop->server({address => '127.0.0.1'} => sub { shift; shift->close }); | |
+$id = $loop->server({address => '127.0.0.1'} => sub { }); | |
$port = $loop->acceptor($id)->port; | |
-$loop->client({port => $port} => sub { }); | |
+$loop->client({port => $port} => sub { pop->close }); | |
$loop->timer(30 => sub { shift->stop; $err = 'failed' }); | |
$loop->start; | |
ok !$err, 'no error'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment