stream: add a test case for the underlying cause.
The original test case hides the underlying cause by using PassThrough
. This change adds a test case for the underlying cause. This makes it clearer and easier to be understood.
Refs: https://github.com/nodejs/node/pull/18372
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test, stream