Skip to content

Commit

Permalink
test: deflake child-process-pipe-dataflow
Browse files Browse the repository at this point in the history
Fixes: #25988
  • Loading branch information
lpinca committed Nov 17, 2021
1 parent f7668fa commit 5739f62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-child-process-pipe-dataflow.js
Expand Up @@ -3,7 +3,6 @@ const common = require('../common');
const assert = require('assert');
const path = require('path');
const fs = require('fs');
const os = require('os');
const spawn = require('child_process').spawn;
const tmpdir = require('../common/tmpdir');

Expand All @@ -27,7 +26,7 @@ const MB = KB * KB;
// So cut the buffer into lines at some points, forcing
// data flow to be split in the stream.
for (let i = 1; i < KB; i++)
buf.write(os.EOL, i * KB);
buf.write('\n', i * KB);
fs.writeFileSync(file, buf.toString());

cat = spawn('cat', [file]);
Expand Down

0 comments on commit 5739f62

Please sign in to comment.