diff options
author | 2022-12-02 00:25:38 -0800 | |
---|---|---|
committer | 2022-12-02 00:25:38 -0800 | |
commit | 37525db5cf2b8b609bd16cc9cfa0c80aa80f9f00 (patch) | |
tree | f2338bb8e1b60d9aa9086a72a41ff3c3de1d7033 /test/bun.js/fetch.test.js | |
parent | e9eb88355b86edbb59f4c405f210142b3c1cf045 (diff) | |
download | bun-37525db5cf2b8b609bd16cc9cfa0c80aa80f9f00.tar.gz bun-37525db5cf2b8b609bd16cc9cfa0c80aa80f9f00.tar.zst bun-37525db5cf2b8b609bd16cc9cfa0c80aa80f9f00.zip |
Faster test
Diffstat (limited to 'test/bun.js/fetch.test.js')
-rw-r--r-- | test/bun.js/fetch.test.js | 12 |
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(); }); |