From c6ed3db8156f097b455e224920f98a57734182a1 Mon Sep 17 00:00:00 2001 From: Ivan Simonik Date: Fri, 3 Apr 2015 14:07:41 +0200 Subject: [PATCH] Added delay in t/anyevent_closed_connection.t * without delay the server is killed before loop is started --- t/anyevent_closed_connection.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/anyevent_closed_connection.t b/t/anyevent_closed_connection.t index 5645a4e..93b9e5c 100644 --- a/t/anyevent_closed_connection.t +++ b/t/anyevent_closed_connection.t @@ -43,6 +43,9 @@ my $server = Test::TCP->new( auto_start => 1, ); +# wait a second for server start +sleep(1); + request($server->port); kill 'QUIT' => $server->pid;