The Wayback Machine - https://web.archive.org/web/20250407172922/https://github.com/nodejs/node/commit/ced89ede03
Skip to content

Navigation Menu

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

Commit ced89ed

Browse filesBrowse files
fmizzelladdaleax
authored andcommitted
test: refactor test-cluster-worker-events
Use assert.strictEqual() instead of assert.equal() PR-URL: #9994 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent aea0d47 commit ced89ed
Copy full SHA for ced89ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎test/parallel/test-cluster-worker-events.js

Copy file name to clipboardexpand all lines: test/parallel/test-cluster-worker-events.js
+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (cluster.isMaster) {
1010
var worker = cluster.fork();
1111

1212
worker.on('exit', function(code) {
13-
assert.equal(code, OK);
13+
assert.strictEqual(code, OK);
1414
process.exit(0);
1515
});
1616

@@ -50,7 +50,7 @@ function check(m) {
5050
assert.deepStrictEqual(messages[0], messages[1]);
5151

5252
cluster.worker.once('error', function(e) {
53-
assert.equal(e, 'HI');
53+
assert.strictEqual(e, 'HI');
5454
process.exit(OK);
5555
});
5656

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.