From d08ac84aaa93852836a26828aae4345e8cbed07c Mon Sep 17 00:00:00 2001 From: Paul Tichonczuk Date: Fri, 12 Oct 2018 11:38:16 -0700 Subject: [PATCH] test: re-order strictEqual paramater calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/23607 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Denys Otrishko Reviewed-By: Anna Henningsen Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-net-reconnect.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-net-reconnect.js b/test/parallel/test-net-reconnect.js index c8b1503cea36e6..eb6b0728478a91 100644 --- a/test/parallel/test-net-reconnect.js +++ b/test/parallel/test-net-reconnect.js @@ -44,7 +44,7 @@ const server = net.createServer(function(socket) { socket.on('close', function(had_error) { console.log(`SERVER had_error: ${JSON.stringify(had_error)}`); - assert.strictEqual(false, had_error); + assert.strictEqual(had_error, false); }); }); @@ -61,7 +61,7 @@ server.listen(0, function() { client.on('data', function(chunk) { client_recv_count += 1; console.log(`client_recv_count ${client_recv_count}`); - assert.strictEqual('hello\r\n', chunk); + assert.strictEqual(chunk, 'hello\r\n'); console.error('CLIENT: calling end', client._writableState); client.end(); }); @@ -73,7 +73,7 @@ server.listen(0, function() { client.on('close', function(had_error) { console.log('CLIENT disconnect'); - assert.strictEqual(false, had_error); + assert.strictEqual(had_error, false); if (disconnect_count++ < N) client.connect(server.address().port); // reconnect else @@ -82,7 +82,7 @@ server.listen(0, function() { }); process.on('exit', function() { - assert.strictEqual(N + 1, disconnect_count); - assert.strictEqual(N + 1, client_recv_count); - assert.strictEqual(N + 1, client_end_count); + assert.strictEqual(disconnect_count, N + 1); + assert.strictEqual(client_recv_count, N + 1); + assert.strictEqual(client_end_count, N + 1); });