-
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 flaky test-gc-net-timeout #31918
Conversation
If the timeout is called in the time between 'end' and 'close' that would cause a EPIPE error. Essentially making the test flaky.
@@ -12,6 +12,9 @@ function serverHandler(sock) { | |||
sock.on('close', function() { | |||
clearTimeout(timer); | |||
}); | |||
sock.on('end', function() { |
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.
'end' will cause the writable side to be end()
:d due to allowHalfOpen: false
.
CI: https://ci.nodejs.org/job/node-test-pull-request/29300/ (:heavy_check_mark:) |
The same change got an approval in another PR (#31806) so I will consider that as the second required approval. |
If the timeout is called in the time between 'end' and 'close' that would cause a EPIPE error. Essentially making the test flaky. PR-URL: #31918 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Landed in 1e8625c |
If the timeout is called in the time between 'end' and 'close' that would cause a EPIPE error. Essentially making the test flaky. PR-URL: #31918 Reviewed-By: Anna Henningsen <anna@addaleax.net>
If the timeout is called in the time between 'end' and 'close' that would cause a EPIPE error. Essentially making the test flaky. PR-URL: #31918 Reviewed-By: Anna Henningsen <anna@addaleax.net>
If the timeout is called in the time between 'end' and 'close' that would cause a EPIPE error. Essentially making the test flaky. PR-URL: #31918 Reviewed-By: Anna Henningsen <anna@addaleax.net>
If the timeout is called in the time between 'end' and 'close' that would cause a EPIPE error. Essentially making the test flaky. PR-URL: #31918 Reviewed-By: Anna Henningsen <anna@addaleax.net>
If the timeout is called in the time between 'end' and 'close' that would cause a EPIPE error. Essentially making the test flaky.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes