Skip to content
Prev Previous commit
Next Next commit
test(desktop): let catalog retry recreate its disposable cache
  • Loading branch information
SivanCola committed Nov 13, 2026
commit 3aa9b3f71d6a68705a053cdf787cd3321ecb4c5d
6 changes: 3 additions & 3 deletions desktop/current_catalog_rebuild_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ func TestCurrentCatalogRepairFailureCanRetryWithoutChangingSource(t *testing.T)
if err := os.Remove(dir); err != nil {
t.Fatal(err)
}
if err := os.Rename(dir+".saved", dir); err != nil {
t.Fatal(err)
}
// Let repair recreate this disposable cache. Readers may already recreate
// the directory after the blocker is removed; renaming the saved directory
// back would race those legitimate reads. The source must remain untouched.
if err := app.RebuildSessionCatalog(); err != nil {
t.Fatal(err)
}
Expand Down
Loading