Skip to content

Commit f9d79ef

Browse files
badhikari-godaddyaddaleax
authored andcommitted
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: #10042 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent b4ec7d6 commit f9d79ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-cluster-shared-handle-bind-privileged-port.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ if (cluster.isMaster) {
1818
// Master opens and binds the socket and shares it with the worker.
1919
cluster.schedulingPolicy = cluster.SCHED_NONE;
2020
cluster.fork().on('exit', common.mustCall(function(exitCode) {
21-
assert.equal(exitCode, 0);
21+
assert.strictEqual(exitCode, 0);
2222
}));
2323
} else {
2424
var s = net.createServer(common.fail);
2525
s.listen(42, common.fail.bind(null, 'listen should have failed'));
2626
s.on('error', common.mustCall(function(err) {
27-
assert.equal(err.code, 'EACCES');
27+
assert.strictEqual(err.code, 'EACCES');
2828
process.disconnect();
2929
}));
3030
}

0 commit comments

Comments
 (0)