Skip to content

Commit

Permalink
test: fix test-cluster-worker-disconnect
Browse files Browse the repository at this point in the history
- Just let the process exit gracefully after the worker is disconnected.

Reviewed-By: Brendan Ashworth <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
PR-URL: #1919
Fixes: #1757
  • Loading branch information
santigimeno authored and brendanashworth committed Jun 16, 2015
1 parent 3beb880 commit 52a822d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/parallel/test-cluster-worker-disconnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 52a822d

Please sign in to comment.