mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
907461c289
commit
2f481f7bb0
1 file changed
+3
-3
@@ -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);
|
||||
});
|
||||
Reference in new issue
Block a user