Skip to content

Commit

Permalink
test: fix test-child-process-pipe-dataflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Jun 4, 2023
1 parent 4bb06db commit 583f7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-child-process-pipe-dataflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const MB = KB * KB;


// Make sure process chaining allows desired data flow:
// check cat <file> | grep 'x' | wc -c === 1MB
// check cat <file> | grep 'x' | wc -m === 1MB
// This helps to make sure no data is lost between pipes.

{
Expand All @@ -32,7 +32,7 @@ const MB = KB * KB;

cat = spawn('cat', [file]);
grep = spawn('grep', ['x'], { stdio: [cat.stdout, 'pipe', 'pipe'] });
wc = spawn('wc', ['-c'], { stdio: [grep.stdout, 'pipe', 'pipe'] });
wc = spawn('wc', ['-m'], { stdio: [grep.stdout, 'pipe', 'pipe'] });

// Extra checks: We never try to start reading data ourselves.
cat.stdout._handle.readStart = common.mustNotCall();
Expand Down

0 comments on commit 583f7e6

Please sign in to comment.