stream: bugfix for test-child-process-stdio-big-write-end.js
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
Description of change
In this testcase, if the parent and child process entering balanced state (both processes never sleep), the event loop of Node.js will never be scheduled. Eventually, thousands of callbacks (_stream_writable.js: afterWrite) on event queue cause memory leak.