Skip to content

Commit 8ea5b68

Browse files
committed
Remove oops
1 parent 3e3d17a commit 8ea5b68

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/fourslash/_scripts/updateFailing.mts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ interface TestEvent {
1717
}
1818

1919
async function main() {
20-
const oldFailingTests = fs.readFileSync(failingTestsPath, "utf-8");
2120
const go = which.sync("go");
2221

2322
let testProcess: cp.ChildProcess;
@@ -29,7 +28,6 @@ async function main() {
2928
});
3029
}
3130
catch (error) {
32-
fs.writeFileSync(failingTestsPath, oldFailingTests, "utf-8");
3331
throw new Error("Failed to spawn test process: " + error);
3432
}
3533

@@ -118,7 +116,6 @@ async function main() {
118116
await new Promise<void>((resolve, reject) => {
119117
testProcess.on("close", code => {
120118
if (hadPanic) {
121-
fs.writeFileSync(failingTestsPath, oldFailingTests, "utf-8");
122119
reject(new Error("Unrecovered panic detected in tests\n" + allOutputs.join("")));
123120
return;
124121
}
@@ -129,7 +126,6 @@ async function main() {
129126
});
130127

131128
testProcess.on("error", error => {
132-
fs.writeFileSync(failingTestsPath, oldFailingTests, "utf-8");
133129
reject(error);
134130
});
135131
});

0 commit comments

Comments
 (0)