Skip to content

Commit 62499fb

Browse files
committed
unlink before recreating the link
1 parent 844839d commit 62499fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/accuracy/sdk/accuracy-result-storage/disk-storage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class DiskBasedResultStorage implements AccuracyResultStorage {
8383
if (status === AccuracyRunStatus.Done) {
8484
const latestResultFilePath = this.getLatestResultFilePath(commitSHA);
8585
await this.withFileLock(latestResultFilePath, async () => {
86+
await fs.unlink(latestResultFilePath);
8687
await fs.link(resultFilePath, latestResultFilePath);
8788
});
8889
}

0 commit comments

Comments
 (0)