Skip to content

Commit aea84c2

Browse files
committed
fixup
1 parent 088af2a commit aea84c2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/parallel/test-stream-pipeline.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,12 +1463,7 @@ const tsp = require('timers/promises');
14631463

14641464
const stream = await pipelinePromise(read, duplex);
14651465

1466-
let ret = ''
1467-
for await (const x of stream) {
1468-
ret += x;
1469-
}
1470-
1471-
assert.strictEqual(ret, 'data');
1466+
assert.strictEqual(await stream.text(), 'data');
14721467
}
14731468

14741469
run();

0 commit comments

Comments
 (0)