Skip to content

Commit

Permalink
test: refactor test-cluster-worker-events
Browse files Browse the repository at this point in the history
Use assert.strictEqual() instead of assert.equal()

PR-URL: nodejs#9994
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
fmizzell authored and addaleax committed Dec 8, 2016
1 parent aea0d47 commit ced89ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-cluster-worker-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (cluster.isMaster) {
var worker = cluster.fork();

worker.on('exit', function(code) {
assert.equal(code, OK);
assert.strictEqual(code, OK);
process.exit(0);
});

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

cluster.worker.once('error', function(e) {
assert.equal(e, 'HI');
assert.strictEqual(e, 'HI');
process.exit(OK);
});

Expand Down

0 comments on commit ced89ed

Please sign in to comment.