1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Remove outdated port-setting in CLI test

I think this may have been causing a problem in JRuby
This commit is contained in:
Nate Berkopec 2020-03-14 07:32:00 -06:00 committed by GitHub
parent 18b5c3f290
commit da449ac70f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,13 +22,6 @@ class TestPumaControlCli < TestConfigFileBase
@ready.close
end
def find_open_port
server = TCPServer.new("127.0.0.1", 0)
server.addr[1]
ensure
server.close
end
def with_config_file(path_to_config, port)
path = Pathname.new(path_to_config)
Dir.mktmpdir do |tmp_dir|
@ -120,7 +113,7 @@ class TestPumaControlCli < TestConfigFileBase
def test_control_url_and_status
host = "127.0.0.1"
port = find_open_port
port = UniquePort.call
url = "tcp://#{host}:#{port}/"
opts = [
@ -150,7 +143,7 @@ class TestPumaControlCli < TestConfigFileBase
def test_control_ssl
host = "127.0.0.1"
port = find_open_port
port = UniquePort.call
url = "ssl://#{host}:#{port}?#{ssl_query}"
opts = [