Skip to content

Commit

Permalink
Merge pull request #2316 from MSP-Greg/test-cli
Browse files Browse the repository at this point in the history
test_cli.rb - fix bind port (9292 port in use errors) [changelog skip]
  • Loading branch information
nateberkopec committed Jul 30, 2020
2 parents df57cec + c76172a commit 57fca5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_cli.rb
Expand Up @@ -40,7 +40,8 @@ def test_control_for_tcp
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

Expand Down Expand Up @@ -72,7 +73,8 @@ def test_control_for_ssl
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

Expand Down

0 comments on commit 57fca5c

Please sign in to comment.