From c37b3196b62b5874851aea21d08866533ae5946d Mon Sep 17 00:00:00 2001 From: Fran Herrero Date: Tue, 6 Nov 2018 14:30:10 +0000 Subject: [PATCH] test: fix arguments order PR-URL: https://github.com/nodejs/node/pull/24131 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Gireesh Punathil --- test/parallel/test-net-stream.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-net-stream.js b/test/parallel/test-net-stream.js index a6ec4548ada6ea..4e7e06bfcf2546 100644 --- a/test/parallel/test-net-stream.js +++ b/test/parallel/test-net-stream.js @@ -34,11 +34,11 @@ s.server = new net.Server(); s.server.connections = 10; s._server = s.server; -assert.strictEqual(10, s.server.connections); +assert.strictEqual(s.server.connections, 10); s.destroy(); -assert.strictEqual(9, s.server.connections); +assert.strictEqual(s.server.connections, 9); s.destroy(); -assert.strictEqual(9, s.server.connections); +assert.strictEqual(s.server.connections, 9); const SIZE = 2E6; const N = 10; @@ -69,5 +69,5 @@ const server = net.createServer(function(socket) { }); process.on('exit', function() { - assert.strictEqual(0, server.connections); + assert.strictEqual(server.connections, 0); });