diff --git a/spec/scripts/websocket_server_spec.rb b/spec/scripts/websocket_server_spec.rb index ec7d5e682..b9ffc4c66 100644 --- a/spec/scripts/websocket_server_spec.rb +++ b/spec/scripts/websocket_server_spec.rb @@ -10,7 +10,7 @@ describe 'websocket-server' do let(:output_log) { File.expand_path('log/websocket-server_out.log', app_root) } let(:error_log) { File.expand_path('log/websocket-server_err.log', app_root) } - context 'with IPv6 bind address (via -b option)' do + context 'with IPv6 bind address (via -b option)', if: File.exist?('/proc/net/if_inet6') do # This error is raised for invalid bind addresses let(:error_msg) { "`start_tcp_server': no acceptor" } let(:ipv6_addr) { '::1/128' } @@ -25,7 +25,7 @@ describe 'websocket-server' do it 'starts up successfully' do begin - system("RAILS_ENV=test #{ws_server} start -db #{ipv6_addr} -p #{port}") + system("RAILS_ENV=test #{ws_server} start -db #{ipv6_addr} -p #{port} >/dev/null 2>&1") # Wait for daemon to start Timeout.timeout(20, Timeout::Error, 'WebSocket Server startup timed out') do