mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 22:23:22 +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
@ -275,10 +275,13 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddUntilStep("wait for selected", () => !Game.Beatmap.IsDefault);
|
||||
|
||||
AddStep("delete beatmap files", () =>
|
||||
{
|
||||
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