summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
diff options
context:
space:
mode:
authorBidur Adhikari <badhikari@godaddy.com>2016-12-01 11:51:06 -0600
committerRich Trott <rtrott@gmail.com>2016-12-03 19:14:17 -0800
commit4a63fa3bf964f7f32ccd8d55131b6b29ff3f4c40 (patch)
tree147651f28de0a70e0c03206630420c61155318e0 /test/parallel/test-cluster-shared-handle-bind-privileged-port.js
parent7837866923347acaca73d607fabf1f73af7311d8 (diff)
downloadandroid-node-v8-4a63fa3bf964f7f32ccd8d55131b6b29ff3f4c40.tar.gz
android-node-v8-4a63fa3bf964f7f32ccd8d55131b6b29ff3f4c40.tar.bz2
android-node-v8-4a63fa3bf964f7f32ccd8d55131b6b29ff3f4c40.zip
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 <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'test/parallel/test-cluster-shared-handle-bind-privileged-port.js')
-rw-r--r--test/parallel/test-cluster-shared-handle-bind-privileged-port.js4
1 files 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 9dc0e4ea77..a04662750f 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();
}));
}