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
tests - clean up - three commits #1903
Conversation
Travis failed on Xcode11 Ruby 2.4.6. Most of the intermittent failures seem to involve this particular job. Anyone know what the standard Ruby version is with newer macOS versions? Maybe we should change it to 2.6.3? |
d022ba4
to
e3fe79a
Compare
clean up, mutex removes port issues with parallel testing
All three Travis builds passed. There was a single ruby 2.3.3p222 (32 bit) job that failed on AppVeyor, which is an old version of 2.3 (most recent is 2.3.8). I have seen the method fail before. Human readable error text:
|
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.
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.
* tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb * tests - change nextport to UniquePort.call, remove nextport, mutex clean up, mutex removes port issues with parallel testing * test_integration.rb - make UNIXSocket file names unique
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.
* tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb * tests - change nextport to UniquePort.call, remove nextport, mutex clean up, mutex removes port issues with parallel testing * test_integration.rb - make UNIXSocket file names unique
Commit 'tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb' - Cleans up rackup folder, adds sleep.ru, which allows setting request 'sleep' time via the URI. Add companion 'app' in
TestApps::SLEEP
. See Issue testing - rackup folder - sleep #1902.Commit 'tests - change nextport to UniquePort.call, remove nextport, mutex' - helper.rb currently has two methods to select an unused port. Removed the
nextport
method, and added a mutex toUniquePort.call
for parallel testing.Commit 'test_integration.rb - make UNIXSocket file names unique` - for parallel testing