test: fix backward assertion arguments
PR-URL: https://github.com/nodejs/node/pull/23616 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
4e82835596
commit
1fcf83a430
@ -75,10 +75,10 @@ function makeConnection(index) {
|
||||
}
|
||||
|
||||
if (index < server.maxConnections) {
|
||||
assert.strictEqual(true, gotData,
|
||||
assert.strictEqual(gotData, true,
|
||||
`${index} didn't get data, but should have`);
|
||||
} else {
|
||||
assert.strictEqual(false, gotData,
|
||||
assert.strictEqual(gotData, false,
|
||||
`${index} got data, but shouldn't have`);
|
||||
}
|
||||
});
|
||||
@ -103,5 +103,5 @@ function makeConnection(index) {
|
||||
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.strictEqual(N, closes);
|
||||
assert.strictEqual(closes, N);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user