1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Attempt file operations more than once in another test instance

See
https://github.com/ppy/osu/pull/29433/checks?check_run_id=28833985792.
This commit is contained in:
Dean Herbert 2024-08-16 17:39:45 +09:00
parent 4ea7d9fb9a
commit 68bad9a277
No known key found for this signature in database

View File

@ -276,8 +276,11 @@ namespace osu.Game.Tests.Visual.Navigation
AddStep("delete beatmap files", () =>
{
foreach (var file in Game.Beatmap.Value.BeatmapSetInfo.Files.Where(f => Path.GetExtension(f.Filename) == ".osu"))
Game.Storage.Delete(Path.Combine("files", file.File.GetStoragePath()));
FileUtils.AttemptOperation(() =>
{
foreach (var file in Game.Beatmap.Value.BeatmapSetInfo.Files.Where(f => Path.GetExtension(f.Filename) == ".osu"))
Game.Storage.Delete(Path.Combine("files", file.File.GetStoragePath()));
});
});
AddStep("invalidate cache", () =>