Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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