From 72db343be22123cb5fa660884d2e4a37e3e16034 Mon Sep 17 00:00:00 2001 From: fmizzell Date: Thu, 1 Dec 2016 17:19:34 +0000 Subject: [PATCH] test: refactor test-cluster-worker-events Use assert.strictEqual() instead of assert.equal() PR-URL: https://github.com/nodejs/node/pull/9994 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-cluster-worker-events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cluster-worker-events.js b/test/parallel/test-cluster-worker-events.js index fadfd5356540b3..08bf456a735b7d 100644 --- a/test/parallel/test-cluster-worker-events.js +++ b/test/parallel/test-cluster-worker-events.js @@ -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); }); @@ -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); });