-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: fix test-child-process-send-returns-boolean #20136
Conversation
test-child-process-send-returns-boolean was unreliable in CI and locally. * use 'SIGKILL' for more reliable process termination * replace callback with assert.ifError() * increase interval in fixture from 500ms to 9999ms. It's only purpose is to keep the process from exiting. Fixes: nodejs#20135
From #20135:
Maybe set the timeout in the child process to a few minutes and have it exit afterwards. By then, it should have either been killed, or we can assume something went wrong with the test. |
Stress test against master (should fail): https://ci.nodejs.org/job/node-stress-single-test/1823/ Stress test against this PR (should pass): https://ci.nodejs.org/job/node-stress-single-test/1824/ |
macOS re-run (failure was in an unrelated test): https://ci.nodejs.org/job/node-test-commit-osx/17928/ |
Re-run of the macOS re-run: https://ci.nodejs.org/job/node-test-commit-osx/17978/ |
test-child-process-send-returns-boolean was unreliable in CI and locally. * use 'SIGKILL' for more reliable process termination * replace callback with assert.ifError() * increase interval in fixture from 500ms to 9999ms. It's only purpose is to keep the process from exiting. Fixes: nodejs#20135 PR-URL: nodejs#20136 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
Landed in 6e6913b |
test-child-process-send-returns-boolean was unreliable in CI and locally. * use 'SIGKILL' for more reliable process termination * replace callback with assert.ifError() * increase interval in fixture from 500ms to 9999ms. It's only purpose is to keep the process from exiting. Fixes: #20135 PR-URL: #20136 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
test-child-process-send-returns-boolean was unreliable in CI and
locally.
is to keep the process from exiting.
Fixes: #20135
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes