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:
commit
57fca5c97a
1 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,8 @@ class TestCLI < Minitest::Test
|
||||||
cntl = UniquePort.call
|
cntl = UniquePort.call
|
||||||
url = "tcp://127.0.0.1:#{cntl}/"
|
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", "",
|
"--control-token", "",
|
||||||
"test/rackup/lobster.ru"], @events
|
"test/rackup/lobster.ru"], @events
|
||||||
|
|
||||||
|
@ -72,7 +73,8 @@ class TestCLI < Minitest::Test
|
||||||
control_url = "ssl://#{control_host}:#{control_port}?#{ssl_query}"
|
control_url = "ssl://#{control_host}:#{control_port}?#{ssl_query}"
|
||||||
token = "token"
|
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,
|
"--control-token", token,
|
||||||
"test/rackup/lobster.ru"], @events
|
"test/rackup/lobster.ru"], @events
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue