Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fork_reactor to run the service
  • Loading branch information
sishen committed Apr 11, 2012
1 parent 589cb89 commit 1ecb2ae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/integration/integration_spec.rb
Expand Up @@ -18,10 +18,12 @@ def new_websocket
before(:each) do
# Fork service. Our integration tests MUST block the main thread because we want to wait for i/o to finish.
@server_pid = EM.fork_reactor do
require File.expand_path(File.dirname(__FILE__) + '/../../slanger.rb')
Thin::Logging.silent = true
Slanger::Config.load host: '0.0.0.0', api_port: '4567', websocket_port: '8080', app_key: '765ec374ae0a69f4ce44', secret: 'your-pusher-secret'
Slanger::Service.run
require File.expand_path(File.dirname(__FILE__) + '/../../lib/slanger.rb')
EM.run do
Thin::Logging.silent = true
Slanger::Config.load host: '0.0.0.0', api_port: '4567', websocket_port: '8080', app_key: '765ec374ae0a69f4ce44', secret: 'your-pusher-secret'
Slanger::Service.run
end
end
# Give Slanger a chance to start
sleep 0.6
Expand Down

0 comments on commit 1ecb2ae

Please sign in to comment.