Permalink
Browse files

test: update var to const, use arrow functions

PR-URL: #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>
  • Loading branch information...
matt-in-a-hat authored and Fishrock123 committed Sep 17, 2016
1 parent 4699e30 commit 76fd7db521f3eb3138f313cb5304b894362cdd34
Showing with 5 additions and 5 deletions.
  1. +5 −5 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), []);
}));
}

0 comments on commit 76fd7db

Please sign in to comment.