Really fix port assignment issue in websocket spec

This commit is contained in:
Ryan Lue 2018-05-09 14:10:08 +08:00
parent 81f958a18a
commit 7faed507cf

View file

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