summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-disconnect-idle-worker.js
diff options
context:
space:
mode:
authorMatt Lang <matt@mediasuite.co.nz>2016-09-17 11:24:05 +0200
committerJames M Snell <jasnell@gmail.com>2016-09-27 06:39:31 -0700
commit7561123a9f5f6ee7b48fbfb899b88a9d35d4a57c (patch)
treeec6d4b32355e35618487c4aeddf285c6198e66a3 /test/parallel/test-cluster-disconnect-idle-worker.js
parentfcf7696bc1b64c61a6263d1f13f2af8501dbd207 (diff)
downloadandroid-node-v8-7561123a9f5f6ee7b48fbfb899b88a9d35d4a57c.tar.gz
android-node-v8-7561123a9f5f6ee7b48fbfb899b88a9d35d4a57c.tar.bz2
android-node-v8-7561123a9f5f6ee7b48fbfb899b88a9d35d4a57c.zip
test: update var to const, use arrow functions
PR-URL: https://github.com/nodejs/node/pull/8595 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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), []);
}));
}