diff options
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 { |