Wait for EventMachine to finish starting

This commit is contained in:
Matthew Draper 2016-02-01 03:00:35 +10:30
parent 8dfb876048
commit 4c38319cc2
1 changed files with 1 additions and 0 deletions

View File

@ -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