From 2f481f7bb0734ece82ea982b36b87fa7af39d5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Vasseur?= Date: Fri, 12 Oct 2018 11:27:05 -0700 Subject: [PATCH] test: fix backward assertion arguments PR-URL: https://github.com/nodejs/node/pull/23616 Reviewed-By: Ruben Bridgewater Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-net-server-max-connections.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-net-server-max-connections.js b/test/parallel/test-net-server-max-connections.js index a711e5295be8bf..705c99b7b9737a 100644 --- a/test/parallel/test-net-server-max-connections.js +++ b/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); });