test: fix cluster-worker-isdead
authorSantiago Gimeno <santiago.gimeno@gmail.com>
Sat, 21 Nov 2015 14:33:51 +0000 (15:33 +0100)
committerJames M Snell <jasnell@gmail.com>
Wed, 23 Dec 2015 16:38:33 +0000 (08:38 -0800)
commit567f172ab6465cecb1f130d2c09f8cfddbc6de82
tree2aca2e1c18fe55753b80e844eb28619769245c65
parentde391631e91da0792ec38c7a6e752bcce5ccb0a8
test: fix cluster-worker-isdead

Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

PR-URL: https://github.com/nodejs/node/pull/3954
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
test/parallel/test-cluster-worker-isdead.js