Skip to content

Commit 2f481f7

Browse files
svassrjasnell
authored andcommitted
test: fix backward assertion arguments
PR-URL: #23616 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 907461c commit 2f481f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: 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)