summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-disconnect-leak.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-cluster-disconnect-leak.js')
-rw-r--r--test/parallel/test-cluster-disconnect-leak.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-cluster-disconnect-leak.js b/test/parallel/test-cluster-disconnect-leak.js
index a4916c95ba..4d72b1da80 100644
--- a/test/parallel/test-cluster-disconnect-leak.js
+++ b/test/parallel/test-cluster-disconnect-leak.js
@@ -6,19 +6,17 @@ const common = require('../common');
const net = require('net');
const cluster = require('cluster');
-const noop = () => {};
-
cluster.schedulingPolicy = cluster.SCHED_NONE;
if (cluster.isMaster) {
const worker = cluster.fork();
// This is the important part of the test: Confirm that `disconnect` fires.
- worker.on('disconnect', common.mustCall(noop));
+ worker.on('disconnect', common.mustCall());
// These are just some extra stuff we're checking for good measure...
- worker.on('exit', common.mustCall(noop));
- cluster.on('exit', common.mustCall(noop));
+ worker.on('exit', common.mustCall());
+ cluster.on('exit', common.mustCall());
cluster.disconnect();
return;