From 66c5a941b306bb2963c637f7207f15a7526781c3 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 2 Apr 2022 00:29:26 -0700 Subject: More aggressive GC --- integration/bunjs-only-snippets/response.file.test.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'integration/bunjs-only-snippets/response.file.test.js') diff --git a/integration/bunjs-only-snippets/response.file.test.js b/integration/bunjs-only-snippets/response.file.test.js index 8444cef33..97e5902c5 100644 --- a/integration/bunjs-only-snippets/response.file.test.js +++ b/integration/bunjs-only-snippets/response.file.test.js @@ -1,19 +1,7 @@ import fs from "fs"; import { it, expect } from "bun:test"; import path from "path"; - -function gc() { - Bun.gc(true); -} - -// we must ensure that finalizers are run -// so that the reference-counting logic is exercised -function gcTick() { - gc(); - return new Promise((resolve) => { - setTimeout(resolve, 0); - }); -} +import { gcTick } from "./gc"; it("Bun.file not found returns ENOENT", async () => { try { -- cgit v1.2.3