Fix multiple tests with incorrect access to beatmap imports

This commit is contained in:
Dean Herbert
2022-01-10 14:36:21 +09:00
parent f4a1fa85a1
commit 8ecfb9172e
2 changed files with 25 additions and 15 deletions

View File

@ -39,7 +39,10 @@ namespace osu.Game.Tests.Visual.Menus
AddStep("import beatmap with track", () =>
{
var setWithTrack = Game.BeatmapManager.Import(new ImportTask(TestResources.GetTestBeatmapForImport())).GetResultSafely();
Beatmap.Value = Game.BeatmapManager.GetWorkingBeatmap(setWithTrack.Value.Beatmaps.First());
setWithTrack?.PerformRead(s =>
{
Beatmap.Value = Game.BeatmapManager.GetWorkingBeatmap(s.Beatmaps.First());
});
});
AddStep("bind to track change", () =>