test: refactor test-cluster-worker-isconnected.js
This commit:
- Uses
assert.strictEqual()
instead ofassert.ok()
. - Verifies that the
'disconnect'
listeners are called usingcommon.mustCall()
. - Verifies that
'disconnect'
is emitted oncluster.worker.process
in the worker.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test