test: Updates to test-stream2-unpipe-drain
Checklist
- [X ]
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes - [X ] tests and/or benchmarks are included
- [X ] documentation is changed or added
- [X ] commit message follows commit guidelines
Affected core subsystem(s)
Description of change
- Change var to const and let
- Remove dependency crypto
- Use common.mustCall rather than assert.equal