From f5880d537bfe8ab58ed643af08a05c635bbe3831 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Wed, 9 May 2018 15:17:14 +0800 Subject: [PATCH] Set RAILS_ENV in websocket server spec --- spec/scripts/websocket_server_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/scripts/websocket_server_spec.rb b/spec/scripts/websocket_server_spec.rb index 324ef8a43..ec7d5e682 100644 --- a/spec/scripts/websocket_server_spec.rb +++ b/spec/scripts/websocket_server_spec.rb @@ -25,7 +25,7 @@ describe 'websocket-server' do it 'starts up successfully' do begin - system("#{ws_server} start -db #{ipv6_addr} -p #{port} >/dev/null 2>&1") + system("RAILS_ENV=test #{ws_server} start -db #{ipv6_addr} -p #{port}") # Wait for daemon to start Timeout.timeout(20, Timeout::Error, 'WebSocket Server startup timed out') do