From 6d80af31124aa1a4ad18d8d342169e5c7265caf7 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); });