test: refactor test-net-server-bind
- Use common.mustNotCall() and common.mustCall() as appropriate
- Use block scoping
- Move assertions out of
exit
handler and into callbacks - Order assert.strictEqual() args per docs
- Remove console.log() calls
- Move test from
parallel
tosequential
socommon.PORT
can be used without conflicting with OS-provided ports in otherparallel
tests
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test net