From cfe7395b41ad22b873356c4ee30cb6bca276ee42 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 17 Nov 2021 13:10:19 +0100 Subject: [PATCH] test: deflake child-process-pipe-dataflow Fixes: https://github.com/nodejs/node/issues/25988 --- test/parallel/test-child-process-pipe-dataflow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-child-process-pipe-dataflow.js b/test/parallel/test-child-process-pipe-dataflow.js index 2e2edc65e9e0d52..5b34ea1429d6488 100644 --- a/test/parallel/test-child-process-pipe-dataflow.js +++ b/test/parallel/test-child-process-pipe-dataflow.js @@ -27,7 +27,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]);