test: deflake test-http-destroyed-socket-write2
Ensure that the write occurs in the same tick where the socket is destroyed by the other peer.
Fixes: https://github.com/nodejs/node/issues/36081 Fixes: https://github.com/nodejs/node/issues/4066
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines