test: eliminate multicast test FreeBSD flakiness#4042
test: eliminate multicast test FreeBSD flakiness#4042Trott wants to merge 12 commits intonodejs:masterfrom
Conversation
|
This change moves |
|
With this change, 9999 consecutive successful runs on FreeBSD: Without this change, not so much: |
|
/cc @defunctzombie (to confirm that the test still does what it was written to do) |
There was a problem hiding this comment.
Since you're changing all of these lines, it would be awesome to split them into individual const declaration statements.
|
I think we want to skip if we're in a freebsd jail here. |
test-dgram-multicast-multi-process was flaky on FreeBSD and Raspeberry Pi. This refactoring fixes the issue by eliminating a race condition. Fixes: nodejs#2474
|
Added code to skip test if in a FreeBSD jail per suggestion from @jbergstroem New CI: https://ci.nodejs.org/job/node-test-pull-request/872/ |
|
Bump. Anyone feel good enough about this for an LGTM? |
|
I won't be able to take a look until next week but am sure others can On Monday, November 30, 2015, Rich Trott notifications@github.com wrote:
|
There was a problem hiding this comment.
You can safely drop this, I think.
|
All nits un-nitted. Stress test: https://ci.nodejs.org/job/node-stress-single-test/93/nodes=freebsd102-64/ CI: (Clearly, I should get rid of the CI node-accept-pull-request bookmark...) |
There was a problem hiding this comment.
Not a nit, more a stream-of-consciousness remark, but I would have thrown an exception here.
There was a problem hiding this comment.
Not really a response but getting all stream-of-consciousness over here too: FWIW, I agree and probably would have chosen to throw an exception too and would have also not included console.error() messages here and elsewhere in the test. But those are just my personal preferences and I only wanted to go so far in rewriting existing code. All this stuff was in the existing test. It only shows up as a change because the indentation changed and/or I moved it to a different location.
|
LGTM |
|
Landed in b3313aa |
test-dgram-multicast-multi-process was flaky on FreeBSD and Raspeberry Pi. This refactoring fixes the issue by eliminating a race condition. Fixes: nodejs#2474 PR-URL: nodejs#4042 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test-dgram-multicast-multi-process was flaky on FreeBSD and Raspeberry Pi. This refactoring fixes the issue by eliminating a race condition. Fixes: nodejs#2474 PR-URL: nodejs#4042 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test-dgram-multicast-multi-process was flaky on FreeBSD and Raspeberry
Pi. This refactoring fixes the issue by eliminating a race condition.
Fixes: #2474