Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9d79ef

Browse filesBrowse 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 <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent b4ec7d6 commit f9d79ef
Copy full SHA for f9d79ef

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-shared-handle-bind-privileged-port.js
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.