diff options
author | 2022-04-02 00:29:26 -0700 | |
---|---|---|
committer | 2022-04-02 00:29:26 -0700 | |
commit | 66c5a941b306bb2963c637f7207f15a7526781c3 (patch) | |
tree | a84e071e9a7a9d836c33b2324f7e66836b717765 /integration/bunjs-only-snippets/response.file.test.js | |
parent | 4592b1ccb57b00bbbffb1448609a70af0d362777 (diff) | |
download | bun-66c5a941b306bb2963c637f7207f15a7526781c3.tar.gz bun-66c5a941b306bb2963c637f7207f15a7526781c3.tar.zst bun-66c5a941b306bb2963c637f7207f15a7526781c3.zip |
More aggressive GC
Diffstat (limited to 'integration/bunjs-only-snippets/response.file.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/response.file.test.js | 14 |
1 files changed, 1 insertions, 13 deletions
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 { |