From e14a597d359a95daaed27da196500f578fbfb73d Mon Sep 17 00:00:00 2001 From: Kevin Zurawel Date: Thu, 1 Dec 2016 09:41:07 -0600 Subject: [PATCH] test: change equal to strictEqual This commit changes calls to `assert.equal()` to `assert.strictEqual()`. PR-URL: https://github.com/nodejs/node/pull/9872 Reviewed-By: Myles Borins Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Roman Reiss --- test/parallel/test-cluster-shared-handle-bind-error.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cluster-shared-handle-bind-error.js b/test/parallel/test-cluster-shared-handle-bind-error.js index f5a08a1ed8481e..99573ef9539f56 100644 --- a/test/parallel/test-cluster-shared-handle-bind-error.js +++ b/test/parallel/test-cluster-shared-handle-bind-error.js @@ -12,7 +12,7 @@ if (cluster.isMaster) { var server = this; var worker = cluster.fork(); worker.on('exit', common.mustCall(function(exitCode) { - assert.equal(exitCode, 0); + assert.strictEqual(exitCode, 0); server.close(); })); }); @@ -20,7 +20,7 @@ if (cluster.isMaster) { var s = net.createServer(common.fail); s.listen(common.PORT, common.fail.bind(null, 'listen should have failed')); s.on('error', common.mustCall(function(err) { - assert.equal(err.code, 'EADDRINUSE'); + assert.strictEqual(err.code, 'EADDRINUSE'); process.disconnect(); })); }