1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 02:42:54 +08:00

Merge pull request #29412 from peppy/file-io-test-failure

This commit is contained in:
Dan Balasescu 2024-08-14 13:06:14 +09:00 committed by GitHub
commit 6840f4bca4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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", () =>
{