mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 03:13:21 +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", () =>
|
AddStep("delete beatmap files", () =>
|
||||||
{
|
{
|
||||||
foreach (var file in Game.Beatmap.Value.BeatmapSetInfo.Files.Where(f => Path.GetExtension(f.Filename) == ".osu"))
|
FileUtils.AttemptOperation(() =>
|
||||||
Game.Storage.Delete(Path.Combine("files", file.File.GetStoragePath()));
|
{
|
||||||
|
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", () =>
|
AddStep("invalidate cache", () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user