Skip to content
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

test_integration.erb - fix intermittent test #1924

Merged

Conversation

MSP-Greg
Copy link
Member

Fixes test_sigterm_closes_listeners_on_forked_servers

When the test was added in PR #1802, it used the rackup/1second.ru file, which provided a fixed one second delay.

PR #1903 removed the 1second.ru file and added a sleep.ru file, which allowed variable timing. But, the 'sleep1' path was added to only one of the test's two connect calls.

The test has passed most of the time, but intermittently fails. This adds the 1 second delay to the 2nd connect call, which should make it stable.

The 2nd connect call loaded the next_replies array, which was the array that was failing in it's assert.

PR #1903 was my PR, so apologies for the mistake.

Fixes test_sigterm_closes_listeners_on_forked_servers

When the test was added in PR puma#1802, it used the rackup/1second.ru file, which provided a fixed one second delay.

PR puma#1903 removed the 1second.ru file and added a sleep.ru file, which allowed variable timing.  But, the 'sleep1' path was added to only one of the test's two connect calls.

The test has passed most of the time, but intermittently fails.  This adds the 1 second delay to the 2nd connect call, which should make it stable.
@nateberkopec nateberkopec merged commit 3f8f784 into puma:master Aug 23, 2019
@MSP-Greg MSP-Greg deleted the test-integration-fix-intermittent branch August 23, 2019 12:15
nateberkopec pushed a commit that referenced this pull request Sep 5, 2019
Fixes test_sigterm_closes_listeners_on_forked_servers

When the test was added in PR #1802, it used the rackup/1second.ru file, which provided a fixed one second delay.

PR #1903 removed the 1second.ru file and added a sleep.ru file, which allowed variable timing.  But, the 'sleep1' path was added to only one of the test's two connect calls.

The test has passed most of the time, but intermittently fails.  This adds the 1 second delay to the 2nd connect call, which should make it stable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants