Skip to content

test: refactor test-cluster-worker-isconnected.js

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/disconnect into master

This commit:

  • Uses assert.strictEqual() instead of assert.ok().
  • Verifies that the 'disconnect' listeners are called using common.mustCall().
  • Verifies that 'disconnect' is emitted on cluster.worker.process in the worker.
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading