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

Merge pull request #2316 from MSP-Greg/test-cli

test_cli.rb - fix bind port (9292 port in use errors) [changelog skip]
This commit is contained in:
Nate Berkopec 2020-07-30 14:54:44 +09:00 committed by GitHub
commit 57fca5c97a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,8 @@ class TestCLI < Minitest::Test
cntl = UniquePort.call
url = "tcp://127.0.0.1:#{cntl}/"
cli = Puma::CLI.new [ "--control-url", url,
cli = Puma::CLI.new ["-b", "tcp://127.0.0.1:0",
"--control-url", url,
"--control-token", "",
"test/rackup/lobster.ru"], @events
@ -72,7 +73,8 @@ class TestCLI < Minitest::Test
control_url = "ssl://#{control_host}:#{control_port}?#{ssl_query}"
token = "token"
cli = Puma::CLI.new ["--control-url", control_url,
cli = Puma::CLI.new ["-b", "tcp://127.0.0.1:0",
"--control-url", control_url,
"--control-token", token,
"test/rackup/lobster.ru"], @events