test: refactor test-cluster-net-listen

10.5 error Please use assert.strictEqual() instead of assert.equal()

PR-URL: https://github.com/nodejs/node/pull/10047
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Segu Riluvan 2016-12-01 11:53:59 -06:00 committed by Rich Trott
parent 5c85ae69f9
commit 72c773cc33

View File

@ -7,7 +7,7 @@ var net = require('net');
if (cluster.isMaster) { if (cluster.isMaster) {
// ensure that the worker exits peacefully // ensure that the worker exits peacefully
cluster.fork().on('exit', common.mustCall(function(statusCode) { cluster.fork().on('exit', common.mustCall(function(statusCode) {
assert.equal(statusCode, 0); assert.strictEqual(statusCode, 0);
})); }));
} else { } else {
// listen() without port should not trigger a libuv assert // listen() without port should not trigger a libuv assert