summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-shared-handle-bind-error.js
diff options
context:
space:
mode:
authorKevin Zurawel <kzurawel@gmail.com>2016-12-01 09:41:07 -0600
committerRoman Reiss <me@silverwind.io>2016-12-03 14:14:51 +0100
commit228a32bfd6fcc8e7dc4ac85440829f4f243855b6 (patch)
tree83c2b5990d2ff5a22692dcdf8c879c2f6f0cbea0 /test/parallel/test-cluster-shared-handle-bind-error.js
parent7be1f186aa3c12dc745e42b246c9e883206bf17f (diff)
downloadandroid-node-v8-228a32bfd6fcc8e7dc4ac85440829f4f243855b6.tar.gz
android-node-v8-228a32bfd6fcc8e7dc4ac85440829f4f243855b6.tar.bz2
android-node-v8-228a32bfd6fcc8e7dc4ac85440829f4f243855b6.zip
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 <myles.borins@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-cluster-shared-handle-bind-error.js')
-rw-r--r--test/parallel/test-cluster-shared-handle-bind-error.js4
1 files 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 f5a08a1ed8..99573ef953 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();
}));
}