From 43c2aa36483162987eb7b7b2a0bd35eabde52283 Mon Sep 17 00:00:00 2001 From: Vsevolod Geraskin Date: Fri, 12 Oct 2018 11:39:59 -0700 Subject: [PATCH] test: reverse arguments in assert.strictEqual assert.strictEqual() had incorrect order of arguments with expected and actual values reversed. PR-URL: https://github.com/nodejs/node/pull/23613 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-http-keep-alive-close-on-header.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-http-keep-alive-close-on-header.js b/test/parallel/test-http-keep-alive-close-on-header.js index f5fb9466db1fa7..fd0c52037fa78c 100644 --- a/test/parallel/test-http-keep-alive-close-on-header.js +++ b/test/parallel/test-http-keep-alive-close-on-header.js @@ -46,7 +46,7 @@ server.listen(0, function() { port: this.address().port, agent: agent }, function(res) { - assert.strictEqual(1, agent.sockets[name].length); + assert.strictEqual(agent.sockets[name].length, 1); res.resume(); }); request.on('socket', function(s) { @@ -63,7 +63,7 @@ server.listen(0, function() { port: this.address().port, agent: agent }, function(res) { - assert.strictEqual(1, agent.sockets[name].length); + assert.strictEqual(agent.sockets[name].length, 1); res.resume(); }); request.on('socket', function(s) { @@ -80,7 +80,7 @@ server.listen(0, function() { agent: agent }, function(response) { response.on('end', function() { - assert.strictEqual(1, agent.sockets[name].length); + assert.strictEqual(agent.sockets[name].length, 1); server.close(); }); response.resume(); @@ -94,5 +94,5 @@ server.listen(0, function() { }); process.on('exit', function() { - assert.strictEqual(3, connectCount); + assert.strictEqual(connectCount, 3); });