From 1ff9a49b7811f77919075132559adf105c3291b5 Mon Sep 17 00:00:00 2001 From: Yomar Date: Fri, 21 Jun 2019 15:43:51 -0500 Subject: [PATCH] test: switch assertion order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/28339 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Michaƫl Zasso Reviewed-By: Yongsheng Zhang Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- test/pummel/test-child-process-spawn-loop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pummel/test-child-process-spawn-loop.js b/test/pummel/test-child-process-spawn-loop.js index fdff82a6e4eb34..f6d8207df85b9b 100644 --- a/test/pummel/test-child-process-spawn-loop.js +++ b/test/pummel/test-child-process-spawn-loop.js @@ -44,7 +44,7 @@ function doSpawn(i) { child.on('close', () => { // + 1 for \n or + 2 for \r\n on Windows - assert.strictEqual(SIZE + (common.isWindows ? 2 : 1), count); + assert.strictEqual(count, SIZE + (common.isWindows ? 2 : 1)); if (i < N) { doSpawn(i + 1); } else {