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:
parent
4ea7d9fb9a
commit
68bad9a277
@ -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", () =>
|
||||
|
Loading…
Reference in New Issue
Block a user