test: fix test-cluster-worker-disconnect
authorSantiago Gimeno <santiago.gimeno@gmail.com>
Mon, 8 Jun 2015 19:18:48 +0000 (21:18 +0200)
committerBrendan Ashworth <brendan.ashworth@me.com>
Tue, 16 Jun 2015 19:34:23 +0000 (12:34 -0700)
- Just let the process exit gracefully after the worker is disconnected.

Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
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

index 7f40381..4c9aaf1 100644 (file)
@@ -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() {