aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-disconnect-idle-worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-cluster-disconnect-idle-worker.js')
-rw-r--r--test/parallel/test-cluster-disconnect-idle-worker.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-cluster-disconnect-idle-worker.js b/test/parallel/test-cluster-disconnect-idle-worker.js
index abb8f67100..e3ad91ad10 100644
--- a/test/parallel/test-cluster-disconnect-idle-worker.js
+++ b/test/parallel/test-cluster-disconnect-idle-worker.js
@@ -1,13 +1,13 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
-var cluster = require('cluster');
-var fork = cluster.fork;
+const common = require('../common');
+const assert = require('assert');
+const cluster = require('cluster');
+const fork = cluster.fork;
if (cluster.isMaster) {
fork(); // it is intentionally called `fork` instead of
fork(); // `cluster.fork` to test that `this` is not used
- cluster.disconnect(common.mustCall(function() {
+ cluster.disconnect(common.mustCall(() => {
assert.deepStrictEqual(Object.keys(cluster.workers), []);
}));
}