test: refactor test for net listen on fd0
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test, net
Description of change
Replace var to const/let, use common.mustCall on callbacks and move process.on('exit') to the .on('error') handler