From 474b401794b63614da12fe003273440dd5aefe43 Mon Sep 17 00:00:00 2001 From: Marcos Frony Date: Fri, 12 Oct 2018 10:15:11 -0700 Subject: [PATCH] test: reorder asserts arguments Revert arguments for assert and ensure that the first argument is always the actual value being tested. PR-URL: https://github.com/nodejs/node/pull/23534 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- test/pummel/test-net-pause.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pummel/test-net-pause.js b/test/pummel/test-net-pause.js index c25f8a0bc1d49b..ea0e61264e32db 100644 --- a/test/pummel/test-net-pause.js +++ b/test/pummel/test-net-pause.js @@ -53,7 +53,7 @@ server.on('listening', function() { setTimeout(function() { chars_recved = recv.length; console.log(`pause at: ${chars_recved}`); - assert.strictEqual(true, chars_recved > 1); + assert.strictEqual(chars_recved > 1, true); client.pause(); setTimeout(function() { console.log(`resume at: ${chars_recved}`); @@ -86,6 +86,6 @@ server.on('listening', function() { server.listen(common.PORT); process.on('exit', function() { - assert.strictEqual(N, recv.length); + assert.strictEqual(recv.length, N); console.error('Exit'); });