aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-worker-death.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-cluster-worker-death.js')
-rw-r--r--test/parallel/test-cluster-worker-death.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-worker-death.js b/test/parallel/test-cluster-worker-death.js
index 6435232a81..7a33721a9a 100644
--- a/test/parallel/test-cluster-worker-death.js
+++ b/test/parallel/test-cluster-worker-death.js
@@ -6,7 +6,7 @@ const cluster = require('cluster');
if (!cluster.isMaster) {
process.exit(42);
} else {
- var worker = cluster.fork();
+ const worker = cluster.fork();
worker.on('exit', common.mustCall(function(exitCode, signalCode) {
assert.strictEqual(exitCode, 42);
assert.strictEqual(signalCode, null);