From 52a822d944ff24aa844636cdaff33152d769fb29 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Mon, 8 Jun 2015 21:18:48 +0200 Subject: [PATCH] test: fix test-cluster-worker-disconnect - Just let the process exit gracefully after the worker is disconnected. Reviewed-By: Brendan Ashworth Reviewed-By: Ben Noordhuis PR-URL: https://github.com/nodejs/io.js/pull/1919 Fixes: https://github.com/nodejs/io.js/issues/1757 --- test/parallel/test-cluster-worker-disconnect.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/parallel/test-cluster-worker-disconnect.js b/test/parallel/test-cluster-worker-disconnect.js index 7f4038149cd7d1..4c9aaf1115d13f 100644 --- a/test/parallel/test-cluster-worker-disconnect.js +++ b/test/parallel/test-cluster-worker-disconnect.js @@ -69,10 +69,6 @@ if (cluster.isWorker) { checks.worker.emitExit = true; checks.worker.died = !alive(worker.process.pid); checks.worker.emitDisconnectInsideWorker = code === 42; - - process.nextTick(function() { - process.exit(0); - }); }); process.once('exit', function() {