1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00

Fix file access test failure by forcing retries

See https://github.com/ppy/osu/actions/runs/10369630825/job/28708248682.
This commit is contained in:
Dean Herbert 2024-08-14 12:26:21 +09:00
parent 78ef436ea0
commit dd9705b660
No known key found for this signature in database

View File

@ -47,6 +47,7 @@ using osu.Game.Screens.Select.Carousel;
using osu.Game.Screens.Select.Leaderboards;
using osu.Game.Screens.Select.Options;
using osu.Game.Tests.Beatmaps.IO;
using osu.Game.Utils;
using osuTK;
using osuTK.Input;
using SharpCompress;
@ -239,6 +240,8 @@ namespace osu.Game.Tests.Visual.Navigation
AddUntilStep("wait for selected", () => !Game.Beatmap.IsDefault);
AddStep("change beatmap files", () =>
{
FileUtils.AttemptOperation(() =>
{
foreach (var file in Game.Beatmap.Value.BeatmapSetInfo.Files.Where(f => Path.GetExtension(f.Filename) == ".osu"))
{
@ -246,6 +249,7 @@ namespace osu.Game.Tests.Visual.Navigation
stream.WriteByte(0);
}
});
});
AddStep("invalidate cache", () =>
{