test: refactor stream-*-constructor-set-methods
- Use
common.mustCall()
to ensure that callbacks are called. - Remove no longer needed variables.
- Remove unnecessary
process.on('exit')
usage.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
test