diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/unit/streams_test.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cli/tests/unit/streams_test.ts b/cli/tests/unit/streams_test.ts index e496b5c4f..7713cb4b5 100644 --- a/cli/tests/unit/streams_test.ts +++ b/cli/tests/unit/streams_test.ts @@ -126,9 +126,7 @@ function emptyChunkStream() { }); } -// Try to blow up any recursive reads. Note that because of the use of Array.shift in -// ReadableStream, this might not actually be able to complete with larger values of -// length. +// Try to blow up any recursive reads. function veryLongTinyPacketStream(length: number) { return new ReadableStream({ start(controller) { @@ -249,9 +247,9 @@ Deno.test(async function readableStreamLongAsyncReadAll() { }); Deno.test(async function readableStreamVeryLongReadAll() { - const rid = resourceForReadableStream(veryLongTinyPacketStream(10000)); + const rid = resourceForReadableStream(veryLongTinyPacketStream(1_000_000)); const buffer = await core.ops.op_read_all(rid); - assertEquals(buffer.length, 10000); + assertEquals(buffer.length, 1_000_000); core.ops.op_close(rid); }); |