test: swap assert.strictEqual args to actual, expected
PR-URL: https://github.com/nodejs/node/pull/23459 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
68b46372a7
commit
767d4daeed
@ -47,7 +47,7 @@ if (cluster.isMaster && process.argv.length !== 3) {
|
|||||||
worker.on('message', common.mustCall(function(err) {
|
worker.on('message', common.mustCall(function(err) {
|
||||||
// disconnect first, so that we will not leave zombies
|
// disconnect first, so that we will not leave zombies
|
||||||
worker.disconnect();
|
worker.disconnect();
|
||||||
assert.strictEqual('EADDRINUSE', err.code);
|
assert.strictEqual(err.code, 'EADDRINUSE');
|
||||||
}));
|
}));
|
||||||
} else if (process.argv.length !== 3) {
|
} else if (process.argv.length !== 3) {
|
||||||
// cluster.worker
|
// cluster.worker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user