From e3793e445bfd8e040db4d926398d47b605e4af36 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 16:40:45 +0000 Subject: [PATCH] chore(internal): improve streaming tests --- tests/streaming.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/streaming.test.ts b/tests/streaming.test.ts index 4a3ff99e..29da8243 100644 --- a/tests/streaming.test.ts +++ b/tests/streaming.test.ts @@ -226,7 +226,10 @@ test('error handling', async () => { yield Buffer.from('\n\n'); } - const stream = Stream.fromSSEResponse(new Response(await iteratorToStream(body())), new AbortController()); + const stream = Stream.fromSSEResponse( + new Response(await ReadableStreamFrom(body())), + new AbortController(), + ); const err = expect( (async () => {