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;