From 7faed507cf8ee638c954c46f6114607274ad7290 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Wed, 9 May 2018 14:10:08 +0800 Subject: [PATCH] Really fix port assignment issue in websocket 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 88e61f2bd..324ef8a43 100644 --- a/spec/scripts/websocket_server_spec.rb +++ b/spec/scripts/websocket_server_spec.rb @@ -15,7 +15,7 @@ describe 'websocket-server' do let(:error_msg) { "`start_tcp_server': no acceptor" } let(:ipv6_addr) { '::1/128' } # Prevent port assignment conflicts during parallel test execution - let(:port) { '60042' } + let(:port) { rand(60_000..65_000) } # Flush logs before do