Skip to content
Permalink
Browse files

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>
  • Loading branch information...
svassr authored and jasnell committed Oct 12, 2018
1 parent 907461c commit 2f481f7bb0734ece82ea982b36b87fa7af39d5bc
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/parallel/test-net-server-max-connections.js
@@ -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);
});

0 comments on commit 2f481f7

Please sign in to comment.
You can’t perform that action at this time.