Skip to content

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 to sequential so common.PORT can be used without conflicting with OS-provided ports in other parallel tests
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test net

Merge request reports

Loading