-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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 flaky test-http2-ping-flood #19395
Conversation
The test is unreliable on some Windows platforms in its current form. Make it more robust by using `setInterval()` to repeat the flooding until an error is triggered.
CI: https://ci.nodejs.org/job/node-test-pull-request/13707/ If this works, this may be the first green CI in a loooooong time.... |
Three CI failures, all unrelated. Windows is green for the first time in probably weeks or more! Trying CI again: https://ci.nodejs.org/job/node-test-pull-request/13708/ |
Ci is green. Like, not yellow. Green. Honest green. Let's land this, shall we? |
message: | ||
'Flooding was detected in this HTTP/2 session, and it must be closed' | ||
})); | ||
session.on('error', (e) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe keep common.expectsError
and have a second session.on('error', ...
for clearInterval
?
Edit: not blocking (let's get that CI green), I just find common.expectsError
clearer.
The test is unreliable on some Windows platforms in its current form. Make it more robust by using `setInterval()` to repeat the flooding until an error is triggered. PR-URL: nodejs#19395 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in 0fb017d |
The test is unreliable on some Windows platforms in its current form. Make it more robust by using `setInterval()` to repeat the flooding until an error is triggered. PR-URL: #19395 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test is unreliable on some Windows platforms in its current form. Make it more robust by using `setInterval()` to repeat the flooding until an error is triggered. PR-URL: #19395 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test is unreliable on some Windows platforms in its current form. Make it more robust by using `setInterval()` to repeat the flooding until an error is triggered. PR-URL: #19395 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test is unreliable on some Windows platforms in its current form.
Make it more robust by using
setInterval()
to repeat the floodinguntil an error is triggered.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes