From facf7148ecb5b5c88c4750b0f252becead8451a0 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 and strictEqual Update `var` to `const` and `assert.equal` to `assert.strictEqual` --- ...t-cluster-shared-handle-bind-privileged-port.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 9dc0e4ea773137..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'); @@ -18,13 +18,13 @@ if (cluster.isMaster) { // Master opens and binds the socket and shares it with the worker. cluster.schedulingPolicy = cluster.SCHED_NONE; cluster.fork().on('exit', common.mustCall(function(exitCode) { - assert.equal(exitCode, 0); + 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.equal(err.code, 'EACCES'); + assert.strictEqual(err.code, 'EACCES'); process.disconnect(); })); }