From 03be43ce1b8a8515fc6970ec29c1c6819a8d8c81 Mon Sep 17 00:00:00 2001 From: Philip Russell Date: Fri, 23 Feb 2024 16:02:33 +0000 Subject: [PATCH] catch dying time(1) --- packages/bun-internal-test/src/runner.node.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bun-internal-test/src/runner.node.mjs b/packages/bun-internal-test/src/runner.node.mjs index 3c5a3e5a134d84..5b98a33348c4ea 100644 --- a/packages/bun-internal-test/src/runner.node.mjs +++ b/packages/bun-internal-test/src/runner.node.mjs @@ -249,9 +249,9 @@ async function runTest(path) { metadata.time = {}; try { metadata.time = JSON.parse(readFileSync(tmpFile, "utf-8")); + rmSync(tmpFile); } catch (e) { } - rmSync(tmpFile); if (tmpDir) { spawn("rm", ["-rf", tmpDir], { stdio: "inherit", detached: true }).unref(); }