Disable websocket server spec IPv6 example on systems without IPv6 support
This commit is contained in:
parent
f5880d537b
commit
8a8e775a95
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ describe 'websocket-server' do
|
||||||
let(:output_log) { File.expand_path('log/websocket-server_out.log', app_root) }
|
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) }
|
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
|
# This error is raised for invalid bind addresses
|
||||||
let(:error_msg) { "`start_tcp_server': no acceptor" }
|
let(:error_msg) { "`start_tcp_server': no acceptor" }
|
||||||
let(:ipv6_addr) { '::1/128' }
|
let(:ipv6_addr) { '::1/128' }
|
||||||
|
@ -25,7 +25,7 @@ describe 'websocket-server' do
|
||||||
|
|
||||||
it 'starts up successfully' do
|
it 'starts up successfully' do
|
||||||
begin
|
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
|
# Wait for daemon to start
|
||||||
Timeout.timeout(20, Timeout::Error, 'WebSocket Server startup timed out') do
|
Timeout.timeout(20, Timeout::Error, 'WebSocket Server startup timed out') do
|
||||||
|
|
Loading…
Reference in a new issue