From 9f42b66d6060c7cf8379c3af989d49a489928e62 Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Thu, 21 Nov 2024 17:14:48 -0800 Subject: [PATCH] fix test --- test/js/web/fetch/body-stream.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/js/web/fetch/body-stream.test.ts b/test/js/web/fetch/body-stream.test.ts index f42de34e02fc06..1b9bc335962c38 100644 --- a/test/js/web/fetch/body-stream.test.ts +++ b/test/js/web/fetch/body-stream.test.ts @@ -34,9 +34,8 @@ for (let doClone of [true, false]) { }, async url => { called = true; - expect(await fetch(url).then(res => res.text())).toContain( - "Welcome to Bun! To get started, return a Response object.", - ); + // if we can flush it will be "hey" otherwise will be empty + expect(await fetch(url).then(res => res.text())).toBeOneOf(["hey", ""]); }, );