aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/fetch.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/fetch.test.js')
-rw-r--r--test/bun.js/fetch.test.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/bun.js/fetch.test.js b/test/bun.js/fetch.test.js
index 65efc6ab5..b25f81409 100644
--- a/test/bun.js/fetch.test.js
+++ b/test/bun.js/fetch.test.js
@@ -245,12 +245,14 @@ function testBlobInterface(blobbyConstructor, hasBlobFn) {
const compare = new Uint8Array(await response.arrayBuffer());
if (withGC) gc();
- for (let i = 0; i < compare.length; i++) {
- if (withGC) gc();
+ withoutAggressiveGC(() => {
+ for (let i = 0; i < compare.length; i++) {
+ if (withGC) gc();
- expect(compare[i]).toBe(bytes[i]);
- if (withGC) gc();
- }
+ expect(compare[i]).toBe(bytes[i]);
+ if (withGC) gc();
+ }
+ });
if (withGC) gc();
});