From 8a8e775a957381451f3b61a185372404427e063c Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Wed, 9 May 2018 16:42:32 +0800 Subject: [PATCH] Disable websocket server spec IPv6 example on systems without IPv6 support --- spec/scripts/websocket_server_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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