aboutsummaryrefslogtreecommitdiff
path: root/test/js/web/fetch/fetch-leak-test-fixture.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/web/fetch/fetch-leak-test-fixture.js')
-rw-r--r--test/js/web/fetch/fetch-leak-test-fixture.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/js/web/fetch/fetch-leak-test-fixture.js b/test/js/web/fetch/fetch-leak-test-fixture.js
index c83bbea83..1767cdb04 100644
--- a/test/js/web/fetch/fetch-leak-test-fixture.js
+++ b/test/js/web/fetch/fetch-leak-test-fixture.js
@@ -6,7 +6,7 @@ if (typeof SERVER === "undefined" || !SERVER?.length) {
throw new Error("SERVER environment variable is not set");
}
-const COUNT = parseInt(process.env.COUNT || "50", 10);
+const COUNT = parseInt(process.env.COUNT || "200", 10);
await (async function runAll() {
var fetches = new Array(COUNT);
let i = 0;
@@ -28,7 +28,6 @@ await (async function runAll() {
})();
await Bun.sleep(10);
Bun.gc(true);
-
if ((heapStats().objectTypeCounts.Response ?? 0) > 1 + ((COUNT / 2) | 0)) {
throw new Error("Too many Response objects: " + heapStats().objectTypeCounts.Response);
}