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:
parent
5c85ae69f9
commit
72c773cc33
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user