diff --git a/test/parallel/test-cluster-worker-isdead.js b/test/parallel/test-cluster-worker-isdead.js index 70a96539851398..90454cb86089a7 100644 --- a/test/parallel/test-cluster-worker-isdead.js +++ b/test/parallel/test-cluster-worker-isdead.js @@ -2,7 +2,6 @@ require('../common'); var cluster = require('cluster'); var assert = require('assert'); -var net = require('net'); if (cluster.isMaster) { var worker = cluster.fork(); @@ -11,7 +10,7 @@ if (cluster.isMaster) { 'created.'); worker.on('exit', function() { - assert.ok(!worker.isConnected(), + assert.ok(worker.isDead(), 'After an event has been emitted, ' + 'isDead should return true'); });