Skip to content

Commit 52a822d

Browse files
santigimenobrendanashworth
authored andcommitted
test: fix test-cluster-worker-disconnect
- 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
1 parent 3beb880 commit 52a822d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/parallel/test-cluster-worker-disconnect.js

-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ if (cluster.isWorker) {
6969
checks.worker.emitExit = true;
7070
checks.worker.died = !alive(worker.process.pid);
7171
checks.worker.emitDisconnectInsideWorker = code === 42;
72-
73-
process.nextTick(function() {
74-
process.exit(0);
75-
});
7672
});
7773

7874
process.once('exit', function() {

0 commit comments

Comments
 (0)