Fix multiple tests via null checks and changing ToLive to Detach

flow
This commit is contained in:
Dean Herbert
2022-01-08 00:40:14 +09:00
parent 13401a8846
commit e74a5022c9
11 changed files with 31 additions and 19 deletions

View File

@ -26,7 +26,7 @@ namespace osu.Game.Tests.Skins
private void load()
{
var imported = beatmaps.Import(new ZipArchiveReader(TestResources.OpenResource("Archives/ogg-beatmap.osz"))).GetResultSafely();
beatmap = beatmaps.GetWorkingBeatmap(imported.Value.Beatmaps[0]);
beatmap = beatmaps.GetWorkingBeatmap(imported?.Value.Beatmaps[0]);
beatmap.LoadTrack();
}