New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer rackup file specified by CLI #2236
Prefer rackup file specified by CLI #2236
Conversation
test/test_integration_single.rb
Outdated
@@ -43,6 +43,19 @@ def test_term_suppress | |||
assert_equal 0, status | |||
end | |||
|
|||
def test_prefer_rackup_file_specified_by_cli | |||
skip_unless_signal_exist? :TERM | |||
skip_on :jruby |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this line
test/test_integration_single.rb
Outdated
_, status = stop_server | ||
|
||
assert_match("Hello World", reply) | ||
assert_equal 15, status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assertion isn't necessary I think, we only need the correct reply.
Thank you so much! Can you confirm this new test fails on master? |
All changes requested were made.
Yes, I confirm. |
Co-Authored-By: Cristian Rivera <cristian_rivera@me.com>
Is it possible to backport this to 4.3? We are experiencing this issue with puma 4.3 too. |
Description
This PR aims to always give preference for the rackup file specified by the CLI. I also took opportunity and added some tests.
This Closes #2225 .
Your checklist for this pull request
[changelog skip]
the pull request title.[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.