From 4c38319cc25bb248947a089072442e843761e46d Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Mon, 1 Feb 2016 03:00:35 +1030 Subject: [PATCH] Wait for EventMachine to finish starting --- actioncable/test/client_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/actioncable/test/client_test.rb b/actioncable/test/client_test.rb index d7eecfa322..3c79d61569 100644 --- a/actioncable/test/client_test.rb +++ b/actioncable/test/client_test.rb @@ -32,6 +32,7 @@ class ClientTest < ActionCable::TestCase server.config.channel_load_paths = [File.expand_path('client', __dir__)] Thread.new { EventMachine.run } unless EventMachine.reactor_running? + Thread.pass until EventMachine.reactor_running? # faye-websocket is warning-rich @previous_verbose, $VERBOSE = $VERBOSE, nil