Skip to content

Commit

Permalink
Switch the argument order for the assertion to be in the correct orde…
Browse files Browse the repository at this point in the history
…r (, )
  • Loading branch information
yomarguti committed Jun 21, 2019
1 parent e6edd66 commit 5790a47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pummel/test-child-process-spawn-loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ function doSpawn(i) {
let count = 0;

child.stdout.setEncoding('ascii');
child.stdout.on('data', (chunk) => {
child.stdout.on('data', chunk => {
count += chunk.length;
});

child.stderr.on('data', (chunk) => {
child.stderr.on('data', chunk => {
console.log(`stderr: ${chunk}`);
});

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 {
Expand Down

0 comments on commit 5790a47

Please sign in to comment.