Set RAILS_ENV in websocket server spec

This commit is contained in:
Ryan Lue 2018-05-09 15:17:14 +08:00
parent 7faed507cf
commit f5880d537b

View file

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