test: refactor http pipelined socket test
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test http
Description of change
In test-http-incoming-pipelined-socket-destory:
- setTimeout() with no duration -> setImmediate()
- eliminate unneeded exit listener
- use common.mustCall()
- var -> const/let