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:
parent
18b5c3f290
commit
da449ac70f
1 changed files with 2 additions and 9 deletions
|
@ -22,13 +22,6 @@ class TestPumaControlCli < TestConfigFileBase
|
||||||
@ready.close
|
@ready.close
|
||||||
end
|
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)
|
def with_config_file(path_to_config, port)
|
||||||
path = Pathname.new(path_to_config)
|
path = Pathname.new(path_to_config)
|
||||||
Dir.mktmpdir do |tmp_dir|
|
Dir.mktmpdir do |tmp_dir|
|
||||||
|
@ -120,7 +113,7 @@ class TestPumaControlCli < TestConfigFileBase
|
||||||
|
|
||||||
def test_control_url_and_status
|
def test_control_url_and_status
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
port = find_open_port
|
port = UniquePort.call
|
||||||
url = "tcp://#{host}:#{port}/"
|
url = "tcp://#{host}:#{port}/"
|
||||||
|
|
||||||
opts = [
|
opts = [
|
||||||
|
@ -150,7 +143,7 @@ class TestPumaControlCli < TestConfigFileBase
|
||||||
|
|
||||||
def test_control_ssl
|
def test_control_ssl
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
port = find_open_port
|
port = UniquePort.call
|
||||||
url = "ssl://#{host}:#{port}?#{ssl_query}"
|
url = "ssl://#{host}:#{port}?#{ssl_query}"
|
||||||
|
|
||||||
opts = [
|
opts = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue