From 17a66d76956c63aa5cf5aa12307fd3038fc95e06 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 --- 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'); });