-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[changelog skip] Move integration logging test to main test suite #2240
[changelog skip] Move integration logging test to main test suite #2240
Conversation
I feel the PR is still needs a bit of work. Since this is my first contribution to Puma, I wanted to get feedback in early. Not sure how to assign reviewers, or labels. I'm assuming that is done by the project maintainers. |
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.
Not sure what the edicate is here. I like to leave "self-reviews" to give reviewers context into some the nuances of my changes. Please let me know how you feel about this.
def test_write_to_log | ||
skip_unless_signal_exist? :TERM | ||
|
||
suppress_output = '> /dev/null 2>&1' |
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.
I wanted to clean up the test output, so I suppressed the curl
return.
@@ -112,4 +112,23 @@ def test_siginfo_thread_print | |||
|
|||
assert_match "Thread: TID", output.join | |||
end | |||
|
|||
def test_write_to_log |
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.
Most of this is copied from test/shell/t1.rb
. One of the main modifications was to remove the #sleep
calls. I felt they were unnecessary now given the helper methods #cli_server
, and #stop-server
wait until the Puma starts fully before handing control back to the test.
Cheers! Good work. |
Description
This PR moves the first of 3 integration tests mentioned in #2172 that live in the
test/shell
directory into the main test suite.There was a suggestion to remove the test altogether if there are current tests that exercise the functionality. A cursory look through the existing tests indicates to me that this test is fairly unique.
I decided to move the first test, the "does it log" test to the
TestIntegrationSingle
, as it seemed to me to fit best into this kind of basic configuration scenario (hopefully I am understand the context of these tests correctly).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.