test: improve test-stream-duplex-readable-end
- Remove unneeded listener for the
'error'
event. - Use
common.mustCall()
. - Verify that the
src
stream gets paused.
Refs: https://github.com/nodejs/node/pull/35941
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines