| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Use `common.mustCall()` to make sure connection callback runs exactly once. Use `connect` event instead of `setTimeout` to avoid test failing if timer runs before client is connected. Remove `cluster.worker.disconnect()` after `assert.fail()`. It is unreachable code that is unnecessary.
|
Example failure of the current form of the test in CI: https://ci.nodejs.org/job/node-test-commit-freebsd/16565/nodes=freebsd10-64/console not ok 474 parallel/test-cluster-send-handle-twice
---
duration_ms: 120.28
severity: fail
stack: |-
timeout
... |
Sorry, something went wrong.
|
Failure of current form of test reproduced locally: $ tools/test.py -j 96 --repeat 192 test/parallel/test-cluster-send-handle-twice.js === release test-cluster-send-handle-twice === Path: parallel/test-cluster-send-handle-twice Command: out/Release/node /Users/trott/io.js/test/parallel/test-cluster-send-handle-twice.js --- TIMEOUT --- ... === release test-cluster-send-handle-twice === Path: parallel/test-cluster-send-handle-twice Command: out/Release/node /Users/trott/io.js/test/parallel/test-cluster-send-handle-twice.js --- TIMEOUT --- [04:01|% 100|+ 134|- 58]: Done $ |
Sorry, something went wrong.
|
Success of test in this PR locally: $ tools/test.py -j 96 --repeat 192 test/parallel/test-cluster-send-handle-twice.js
[00:17|% 100|+ 192|- 0]: Done
$ |
Sorry, something went wrong.
Sorry, something went wrong.
| process.send('send-handle-1', socket); | ||
| process.send('send-handle-2', socket); | ||
| }); | ||
| })); |
There was a problem hiding this comment.
This is very likely tested for very very often already.
Sorry, something went wrong.
|
Single CI failure seems unrelated. Re-running just that task: https://ci.nodejs.org/job/node-test-commit-plinux/16508/ (EDIT: Re-run is green.) |
Sorry, something went wrong.
Use `common.mustCall()` to make sure connection callback runs exactly once. Use `connect` event instead of `setTimeout` to avoid test failing if timer runs before client is connected. Remove `cluster.worker.disconnect()` after `assert.fail()`. It is unreachable code that is unnecessary. PR-URL: nodejs#19700 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Use `common.mustCall()` to make sure connection callback runs exactly once. Use `connect` event instead of `setTimeout` to avoid test failing if timer runs before client is connected. Remove `cluster.worker.disconnect()` after `assert.fail()`. It is unreachable code that is unnecessary. PR-URL: #19700 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Use `common.mustCall()` to make sure connection callback runs exactly once. Use `connect` event instead of `setTimeout` to avoid test failing if timer runs before client is connected. Remove `cluster.worker.disconnect()` after `assert.fail()`. It is unreachable code that is unnecessary. PR-URL: #19700 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Use common.mustCall() to make sure connection callback runs exactly
once.
Use connect event instead of setTimeout to avoid test failing if
timer runs before client is connected.
Remove cluster.worker.disconnect() after assert.fail(). It is
unreachable code that is unnecessary.
Checklist