test: switch assertion order

PR-URL: https://github.com/nodejs/node/pull/28339
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Yomar 2019-06-21 15:43:51 -05:00 committed by Anna Henningsen
parent 9a41aa1413
commit 1ff9a49b78
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -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 {