Skip to content

Commit 2d2b9d0

Browse files
committed
stream: change comment
1 parent 2434906 commit 2d2b9d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-stream-readable-to-web.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const process = require('process');
55
const fs = require('fs');
66
const assert = require('assert');
77

8+
// Based on: https://github.com/nodejs/node/issues/46347#issuecomment-1413886707
89
{
910
let currentMemoryUsage = process.memoryUsage().arrayBuffers;
1011

@@ -23,13 +24,13 @@ const assert = require('assert');
2324
};
2425
setInterval(reportMemoryUsage, 1000);
2526

26-
// after 10 seconds we use Readable.toWeb
27+
// after 1 second we use Readable.toWeb
2728
// memory usage should stay pretty much the same since it's still a stream
2829
setTimeout(() => {
2930
randomWebStream = Readable.toWeb(randomNodeStream);
3031
}, 1000);
3132

32-
// after 15 seconds we start consuming the stream
33+
// after 2 seconds we start consuming the stream
3334
// memory usage will grow, but the old chunks should be garbage-collected pretty quickly
3435
setTimeout(async () => {
3536
// eslint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)