Skip to content

Commit

Permalink
test: fix backward assertion arguments
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
svassr authored and MylesBorins committed Nov 29, 2018
1 parent 3eb8938 commit 4c35953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-net-server-max-connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
});
Expand All @@ -103,5 +103,5 @@ function makeConnection(index) {


process.on('exit', function() {
assert.strictEqual(N, closes);
assert.strictEqual(closes, N);
});

0 comments on commit 4c35953

Please sign in to comment.