-
Notifications
You must be signed in to change notification settings - Fork 30k
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: remove magic numbers in test-gc-http-client-onerror #24943
Conversation
Stress test on master (with Stress test on this PR with same parameters: |
Relevant failure: https://ci.nodejs.org/job/node-test-commit-linux/23914/nodes=centos6-64-gcc6/console If I had to guess, it's because of the removal of the early return in getall(). |
Yeah, there's a few of those. Not sure how to re-implement an early return without restoring some kind of magic number but I'll think about it.... |
@Trott it should be sufficient to add another variable (e.g., |
502e7a7
to
aeb2138
Compare
92b8899
to
011027a
Compare
Remove magic numbers (500, 10, 100) from the test. Instead, detect when GC has started and stop sending requests at that point. On my laptop, this results in 16 or 20 requests per run instead of 500. Fixes: nodejs#23089
Worked out the puzzle. This works now. Could use some reviews! |
Needs a review or two. /ping @nodejs/testing |
Bump. |
Landed in 47ecf20 |
Remove magic numbers (500, 10, 100) from the test. Instead, detect when GC has started and stop sending requests at that point. On my laptop, this results in 16 or 20 requests per run instead of 500. Fixes: nodejs#23089 PR-URL: nodejs#24943 Reviewed-By: Colin Ihrig <[email protected]>
Remove magic numbers (500, 10, 100) from the test. Instead, detect when GC has started and stop sending requests at that point. On my laptop, this results in 16 or 20 requests per run instead of 500. Fixes: #23089 PR-URL: #24943 Reviewed-By: Colin Ihrig <[email protected]>
Remove magic numbers (500, 10, 100) from the test. Instead, detect when GC has started and stop sending requests at that point. On my laptop, this results in 16 or 20 requests per run instead of 500. Fixes: #23089 PR-URL: #24943 Reviewed-By: Colin Ihrig <[email protected]>
Remove magic numbers (500, 10, 100) from the test. Instead, detect when GC has started and stop sending requests at that point. On my laptop, this results in 16 or 20 requests per run instead of 500. Fixes: #23089 PR-URL: #24943 Reviewed-By: Colin Ihrig <[email protected]>
Remove magic numbers (500, 10, 100) from the test. Instead, detect when GC has started and stop sending requests at that point. On my laptop, this results in 16 or 20 requests per run instead of 500. Fixes: nodejs#23089 PR-URL: nodejs#24943 Reviewed-By: Colin Ihrig <[email protected]>
Remove magic numbers 500 and 10 from the test. Instead, detect when GC
has started and stop sending requests at that point.
On my laptop, this results in 68 or 72 requests per run instead of 500.
Fixes: #23089
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes