mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
sort configs/rackups/tests (#1268)
This commit is contained in:
parent
3e519e13bd
commit
61de1a8891
17 changed files with 9 additions and 9 deletions
|
@ -44,7 +44,7 @@ class TestCLI < Minitest::Test
|
|||
cli = Puma::CLI.new ["-b", "tcp://127.0.0.1:9876",
|
||||
"--control", url,
|
||||
"--control-token", "",
|
||||
"test/lobster.ru"], @events
|
||||
"test/rackup/lobster.ru"], @events
|
||||
|
||||
t = Thread.new do
|
||||
Thread.current.abort_on_exception = true
|
||||
|
@ -71,7 +71,7 @@ class TestCLI < Minitest::Test
|
|||
"-w", "2",
|
||||
"--control", url,
|
||||
"--control-token", "",
|
||||
"test/lobster.ru"], @events
|
||||
"test/rackup/lobster.ru"], @events
|
||||
|
||||
t = Thread.new { cli.run }
|
||||
t.abort_on_exception = true
|
||||
|
@ -106,7 +106,7 @@ class TestCLI < Minitest::Test
|
|||
cli = Puma::CLI.new ["-b", "unix://#{@tmp_path2}",
|
||||
"--control", url,
|
||||
"--control-token", "",
|
||||
"test/lobster.ru"], @events
|
||||
"test/rackup/lobster.ru"], @events
|
||||
|
||||
t = Thread.new { cli.run }
|
||||
t.abort_on_exception = true
|
||||
|
@ -129,7 +129,7 @@ class TestCLI < Minitest::Test
|
|||
cli = Puma::CLI.new ["-b", "unix://#{@tmp_path2}",
|
||||
"--control", url,
|
||||
"--control-token", "",
|
||||
"test/lobster.ru"], @events
|
||||
"test/rackup/lobster.ru"], @events
|
||||
|
||||
t = Thread.new { cli.run }
|
||||
t.abort_on_exception = true
|
||||
|
|
|
@ -5,7 +5,7 @@ require "puma/configuration"
|
|||
class TestConfigFile < Minitest::Test
|
||||
def test_app_from_rackup
|
||||
conf = Puma::Configuration.new do |c|
|
||||
c.rackup "test/hello-bind.ru"
|
||||
c.rackup "test/rackup/hello-bind.ru"
|
||||
end
|
||||
conf.load
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ class TestIntegration < Minitest::Test
|
|||
c.state_path @state_path
|
||||
c.bind "unix://#{@bind_path}"
|
||||
c.activate_control_app "unix://#{@control_path}", :auth_token => @token
|
||||
c.rackup "test/hello.ru"
|
||||
c.rackup "test/rackup/hello.ru"
|
||||
end
|
||||
|
||||
l = Puma::Launcher.new conf, :events => @events
|
||||
|
@ -149,7 +149,7 @@ class TestIntegration < Minitest::Test
|
|||
c.activate_control_app "unix://#{@control_path}", :auth_token => @token
|
||||
c.workers 2
|
||||
c.worker_shutdown_timeout 1
|
||||
c.rackup "test/hello-stuck.ru"
|
||||
c.rackup "test/rackup/hello-stuck.ru"
|
||||
end
|
||||
|
||||
l = Puma::Launcher.new conf, :events => @events
|
||||
|
@ -209,7 +209,7 @@ class TestIntegration < Minitest::Test
|
|||
end
|
||||
|
||||
def test_restart_closes_keepalive_sockets
|
||||
server("-q test/hello.ru")
|
||||
server("-q test/rackup/hello.ru")
|
||||
|
||||
s = connect
|
||||
s.read
|
||||
|
@ -226,7 +226,7 @@ class TestIntegration < Minitest::Test
|
|||
return
|
||||
end
|
||||
|
||||
server("-q -w 2 test/hello.ru")
|
||||
server("-q -w 2 test/rackup/hello.ru")
|
||||
|
||||
s = connect
|
||||
s.read
|
||||
|
|
Loading…
Reference in a new issue