Uh oh!
There was an error while loading. Please reload this page.
test: fix flaky test-http-set-timeout-server - #6248
Conversation
santigimeno
commented
Apr 16, 2016
mscdex
commented
Apr 16, 2016
On a semi-related note, is there a real reason why we don't just allow the OS to assign a free port number for tests instead of using Would it be better to modify tests to use a random free port to avoid potential issues like this? /cc @nodejs/testing |
santigimeno
commented
Apr 16, 2016
@mscdex I think it is the correct solution. I'll update this test accordingly. The rest of the test suite will take more time. Thanks for the suggestion! |
santigimeno
commented
Apr 16, 2016
Added a new commit so random free ports are used. @mscdex is this what you had in mind? Thanks |
5f4ca3b to
033232aComparemscdex
commented
Apr 16, 2016
@santigimeno Yes. |
e205926 to
6b6c67aComparesantigimeno
commented
Apr 16, 2016
Rebased into a single commit. |
santigimeno
commented
Apr 16, 2016
jbergstroem
commented
Apr 17, 2016
Perhaps even expand how |
Trott
commented
Apr 17, 2016
LGTM |
jasnell
commented
Apr 18, 2016
I think refactoring or improving |
Make the servers listen on a free port number picked by the OS to avoid rare `EADDRINUSE` errors on `SmartOS`. Fixes: nodejs#6197 PR-URL: nodejs#6248 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
6b6c67a to
d639bf6Comparesantigimeno
commented
Apr 19, 2016
Rebased. New CI: https://ci.nodejs.org/job/node-test-pull-request/2312/ |
santigimeno
commented
Apr 19, 2016
All is green except for one of the recurrent test failures in the pi2 |
santigimeno
commented
Apr 19, 2016
Thanks for the reviews |
santigimeno
commented
Apr 19, 2016
Landed in 57f0595 |
Make the servers listen on a free port number picked by the OS to avoid rare `EADDRINUSE` errors on `SmartOS`. Fixes: nodejs#6197 PR-URL: nodejs#6248 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Make the servers listen on a free port number picked by the OS to avoid rare `EADDRINUSE` errors on `SmartOS`. Fixes: nodejs#6197 PR-URL: nodejs#6248 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
Affected core subsystem(s)
test
Description of change
Use different port numbers for every connection to avoid rare
EADDRINUSEerrors onSmartOS.Fixes: #6197