Skip to content

Commit

Permalink
Make this longer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jan 26, 2025
1 parent cbb62d1 commit 2827f0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/js/web/fetch/fetch.stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,11 +916,11 @@ describe("fetch() with streaming", () => {
return new Response(
new ReadableStream({
async pull(controller) {
const firstChunk = data.slice(0, 64);
const secondChunk = data.slice(firstChunk.length);
const firstChunk = data.subarray(0, 64);
const secondChunk = data.subarray(firstChunk.length);
controller.enqueue(firstChunk);
await onReceivedHeaders.promise;
await Bun.sleep(64);
await Bun.sleep(128);
controller.enqueue(secondChunk);
controller.close();
},
Expand Down

0 comments on commit 2827f0b

Please sign in to comment.