From 8748658ed05957eeeb8f49d4e72b0ba87f089091 Mon Sep 17 00:00:00 2001 From: Carl Richmond Date: Fri, 12 Oct 2018 10:40:59 -0700 Subject: [PATCH] test: fix assertion argument order PR-URL: https://github.com/nodejs/node/pull/23545 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat --- test/parallel/test-stream-pipe-cleanup.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-stream-pipe-cleanup.js b/test/parallel/test-stream-pipe-cleanup.js index b8ebc036bee24d..ac0a72a1da416b 100644 --- a/test/parallel/test-stream-pipe-cleanup.js +++ b/test/parallel/test-stream-pipe-cleanup.js @@ -65,8 +65,8 @@ for (i = 0; i < limit; i++) { r.pipe(w); r.emit('end'); } -assert.strictEqual(0, r.listeners('end').length); -assert.strictEqual(limit, w.endCalls); +assert.strictEqual(r.listeners('end').length, 0); +assert.strictEqual(w.endCalls, limit); w.endCalls = 0; @@ -75,8 +75,8 @@ for (i = 0; i < limit; i++) { r.pipe(w); r.emit('close'); } -assert.strictEqual(0, r.listeners('close').length); -assert.strictEqual(limit, w.endCalls); +assert.strictEqual(r.listeners('close').length, 0); +assert.strictEqual(w.endCalls, limit); w.endCalls = 0; @@ -87,7 +87,7 @@ for (i = 0; i < limit; i++) { r.pipe(w); w.emit('close'); } -assert.strictEqual(0, w.listeners('close').length); +assert.strictEqual(w.listeners('close').length, 0); r = new Readable(); w = new Writable();