Skip to content

Commit

Permalink
don't delete the file we're about to read...
Browse files Browse the repository at this point in the history
  • Loading branch information
argosphil committed Feb 28, 2024
1 parent 4762107 commit 3682548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/bun-internal-test/src/runner.node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ async function runTest(path) {
},
});
proc.stdout.once("end", () => {
if (tmpDir) {
spawn("rm", ["-rf", tmpDir], { stdio: "inherit", detached: true }).unref();
}
done();
});

Expand Down Expand Up @@ -255,6 +252,9 @@ async function runTest(path) {
} catch (e) {
}
rmSync(tmpFile);
if (tmpDir) {
spawn("rm", ["-rf", tmpDir], { stdio: "inherit", detached: true }).unref();
}
const passed = exitCode === 0 && !err && !signal;

metadata.passed = passed;
Expand Down

0 comments on commit 3682548

Please sign in to comment.