diff --git a/config/puma.rb b/config/puma.rb index cf6144d6..f7c087b5 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -2,7 +2,7 @@ require_relative "../lib/app" -workers 2 +workers 0 threads 1, 16 preload_app! diff --git a/test/integration/app_boot_test.rb b/test/integration/app_boot_test.rb index 12e252ef..9c32282b 100644 --- a/test/integration/app_boot_test.rb +++ b/test/integration/app_boot_test.rb @@ -63,7 +63,7 @@ def test_app_lowlevel_error_handler port = random_free_port options = { timeout: 5, - wait_for: /Worker.+booted/, + wait_for: /Listening on http:/, env: { RACK_ENV: "development", TEST_LOWLEVEL_ERROR_HANDLER: true, # adds broken middleware @@ -84,7 +84,7 @@ def test_app_development_boot port = random_free_port options = { timeout: 5, - wait_for: /Worker.+booted/, + wait_for: /Listening on http:/, env: { RACK_ENV: "development", REDIRECT_TO_HTTPS: true, @@ -112,7 +112,7 @@ def test_app_production_boot port = random_free_port options = { timeout: 5, - wait_for: /Worker.+booted/, + wait_for: /Listening on http:/, env: { RACK_ENV: "production", LOAD_LOCALHOST_SSL: true, # Tell Puma to bind TLS/SSL port, to simulate production