From f0ec29b81563fd93c5951d046c10f804e48f060f Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sat, 4 Dec 2021 23:13:22 +0100 Subject: [PATCH] fixup --- test/parallel/test-stream-pipeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-stream-pipeline.js b/test/parallel/test-stream-pipeline.js index ee284277915b40..bf1cb84ecda341 100644 --- a/test/parallel/test-stream-pipeline.js +++ b/test/parallel/test-stream-pipeline.js @@ -1501,7 +1501,7 @@ const tsp = require('timers/promises'); let n = 0; for await (const chunk of source) { if (n++ > 1) { - return; + break; } ret += chunk; }