-
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
Investigate flaky test test-child-process-spawnsync #2470
Comments
If I'm understanding the test correctly, the part of the test that is flaky is actually invalid. It checks to see if the function passed to There's already an assertion to confirm that the |
The test had checked that a timer fired within a period after spawnSync() returns. The result was a test that sometimes was flaky. Because there's no guarantee of how long a timer will take before running, remove the check. There is a check that the timer runs after spawnSync() so that is sufficient. Fixes: nodejs#2470
The test had checked that a timer fired within a period after spawnSync() returns. The result was a test that sometimes was flaky. Because there's no guarantee of how long a timer will take before running, remove the check. There is a check that the timer runs after spawnSync() so that is sufficient. PR-URL: #2535 Fixes: #2470 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
The test had checked that a timer fired within a period after spawnSync() returns. The result was a test that sometimes was flaky. Because there's no guarantee of how long a timer will take before running, remove the check. There is a check that the timer runs after spawnSync() so that is sufficient. PR-URL: #2535 Fixes: #2470 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Examples of failures:
centos7-64
The text was updated successfully, but these errors were encountered: