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:
parent
9a41aa1413
commit
1ff9a49b78
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user