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
Prev Previous commit
Next Next commit
fixup: fix windows failure
  • Loading branch information
HarshithaKP committed Mar 9, 2020
commit 8ba9a3145cd4b8ecd85bfe9aca0cfa4bcf0dd26a
5 changes: 3 additions & 2 deletions test/parallel/test-child-process-pipe-dataflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const MB = KB * KB;
// meanings to new line - for example, line buffering.
// So cut the buffer into lines at some points, forcing
// data flow to be split in the stream.
for (let i = 0; i < KB; i++)
for (let i = 1; i < KB; i++)
buf.write(os.EOL, i * KB);
fs.writeFileSync(file, buf.toString());

Expand Down Expand Up @@ -62,6 +62,7 @@ const MB = KB * KB;
});

wc.stdout.on('data', common.mustCall((data) => {
assert.strictEqual(data.toString().trim(), MB.toString());
// Grep always adds one extra byte at the end.
assert.strictEqual(data.toString().trim(), (MB+1).toString());
}));
}