Skip to content

Commit 583f7e6

Browse files
committed
test: fix test-child-process-pipe-dataflow
1 parent 4bb06db commit 583f7e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-child-process-pipe-dataflow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const MB = KB * KB;
1313

1414

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

1919
{
@@ -32,7 +32,7 @@ const MB = KB * KB;
3232

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

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

0 commit comments

Comments
 (0)