Skip to content

Commit

Permalink
catch dying time(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
argosphil committed Feb 28, 2024
1 parent 3682548 commit 03be43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bun-internal-test/src/runner.node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 03be43c

Please sign in to comment.