From 0835ca91c3210bee3ab0f9d8e1dfdafbc0884b59 Mon Sep 17 00:00:00 2001 From: Matt Lang Date: Sat, 17 Sep 2016 11:24:05 +0200 Subject: [PATCH] test: update var to const, use arrow functions PR-URL: https://github.com/nodejs/node/pull/8595 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-cluster-disconnect-idle-worker.js | 10 +++++----- 1 file 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), []); })); }