Browse Source

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>
v7.x
Kevin Zurawel 8 years ago
committed by Anna Henningsen
parent
commit
44d9bc8b90
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 4
      test/parallel/test-cluster-shared-handle-bind-error.js

4
test/parallel/test-cluster-shared-handle-bind-error.js

@ -12,7 +12,7 @@ if (cluster.isMaster) {
var server = this; var server = this;
var worker = cluster.fork(); var worker = cluster.fork();
worker.on('exit', common.mustCall(function(exitCode) { worker.on('exit', common.mustCall(function(exitCode) {
assert.equal(exitCode, 0); assert.strictEqual(exitCode, 0);
server.close(); server.close();
})); }));
}); });
@ -20,7 +20,7 @@ if (cluster.isMaster) {
var s = net.createServer(common.fail); var s = net.createServer(common.fail);
s.listen(common.PORT, common.fail.bind(null, 'listen should have failed')); s.listen(common.PORT, common.fail.bind(null, 'listen should have failed'));
s.on('error', common.mustCall(function(err) { s.on('error', common.mustCall(function(err) {
assert.equal(err.code, 'EADDRINUSE'); assert.strictEqual(err.code, 'EADDRINUSE');
process.disconnect(); process.disconnect();
})); }));
} }

Loading…
Cancel
Save