From a36389ee0836a5b3ca364754a850b37cbda89a80 Mon Sep 17 00:00:00 2001 From: Bidur Adhikari Date: Thu, 1 Dec 2016 11:51:06 -0600 Subject: [PATCH] test: use assert.strictEqual() cluster test Updated test-cluster-shared-handle-bind-privileged-port test method to use assert.strictEqual() instead of assert.equal() PR-URL: https://github.com/nodejs/node/pull/10042 Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- .../test-cluster-shared-handle-bind-privileged-port.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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..a04662750f39e4 100644 --- a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js +++ b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js @@ -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); 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(); })); }