You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
It seems that test-net-error-twice.js does not behave as expected. Its goal is to test fireErrorCallbacks, but it doesn't do it correctly, leading to false negatives on some platforms and failures on others .
However what seems to happen is that at most one write operation fails (which leads to the test succeeding although fireErrorCallbacks has been called only once, and so hasn't been really tested), and sometimes they all succeed (like on SmartOS) which leads to the test failing, but not necessarily for the good reasons.
The text was updated successfully, but these errors were encountered:
It seems that test-net-error-twice.js does not behave as expected. Its
goal is to test fireErrorCallbacks, but it doesn't do it correctly,
leading to false negatives on some platforms and failures on others.
This change marks this test as flaky so that we can use our CI to land
changes in the v0.10 branch until we can fix it properly.
See the corresponding issue at
nodejs#9325 for more details.
It seems that test-net-error-twice.js does not behave as expected. Its
goal is to test fireErrorCallbacks, but it doesn't do it correctly,
leading to false negatives on some platforms and failures on others.
This change marks this test as flaky so that we can use our CI to land
changes in the v0.10 branch until we can fix it properly.
See the corresponding issue at
nodejs#9325 for more details.
PR: nodejs#25760
PR-URL: nodejs#25760
Reviewed-By: João Reis <[email protected]>
It seems that
test-net-error-twice.js
does not behave as expected. Its goal is to testfireErrorCallbacks
, but it doesn't do it correctly, leading to false negatives on some platforms and failures on others .For a
net.Socket
object, each write operation are setup to callafterWrite
, which itself callsnet.Socket.prototype_destroy
if the write operation fails.net.Socket.prototype_destroy
in turn callsfireErrorCallbacks
, whether thenet.Socket
object has been already destroyed or not.This test seems to have been written so that it triggers more than one write by having a buffer that is large enough.
It expects to trigger several errors with these writes by closing the connection on the client side.
and makes sure that
fireErrorCallbacks
will only emit the same write error once.However what seems to happen is that at most one write operation fails (which leads to the test succeeding although
fireErrorCallbacks
has been called only once, and so hasn't been really tested), and sometimes they all succeed (like on SmartOS) which leads to the test failing, but not necessarily for the good reasons.The text was updated successfully, but these errors were encountered: