Skip to content

Commit 2f481f7

Browse files
svassrjasnell
authored andcommitted
test: fix backward assertion arguments
PR-URL: #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>
1 parent 907461c commit 2f481f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-net-server-max-connections.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ function makeConnection(index) {
7575
}
7676

7777
if (index < server.maxConnections) {
78-
assert.strictEqual(true, gotData,
78+
assert.strictEqual(gotData, true,
7979
`${index} didn't get data, but should have`);
8080
} else {
81-
assert.strictEqual(false, gotData,
81+
assert.strictEqual(gotData, false,
8282
`${index} got data, but shouldn't have`);
8383
}
8484
});
@@ -103,5 +103,5 @@ function makeConnection(index) {
103103

104104

105105
process.on('exit', function() {
106-
assert.strictEqual(N, closes);
106+
assert.strictEqual(closes, N);
107107
});

0 commit comments

Comments
 (0)