From 9103c3d3fe118fa5b327f0c3116803dc539222fa Mon Sep 17 00:00:00 2001 From: Greg Valdez Date: Thu, 1 Dec 2016 11:23:58 -0600 Subject: [PATCH] test: update to const iin cluster test Update `var` to `const` PR-URL: https://github.com/nodejs/node/pull/10007 Reviewed-By: Michael Dawson Reviewed-By: Colin Ihrig --- .../test-cluster-shared-handle-bind-privileged-port.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js index a04662750f39e4..c58aa5393519ad 100644 --- a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js +++ b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js @@ -1,8 +1,8 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); -var cluster = require('cluster'); -var net = require('net'); +const common = require('../common'); +const assert = require('assert'); +const cluster = require('cluster'); +const net = require('net'); if (common.isWindows) { common.skip('not reliable on Windows'); @@ -21,7 +21,7 @@ if (cluster.isMaster) { assert.strictEqual(exitCode, 0); })); } else { - var s = net.createServer(common.fail); + const s = net.createServer(common.fail); s.listen(42, common.fail.bind(null, 'listen should have failed')); s.on('error', common.mustCall(function(err) { assert.strictEqual(err.code, 'EACCES');