test: use duplex streams in duplex stream test
test-stream-duplex.js
uses transform streams instead of the duplex stream base class. This leads to some code not being covered in the Duplex
constructor.
This may lead to the equivalent code in the Transform
constructor losing coverage. If that's the case, I'd prefer to fix that in a follow up PR.
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