Fix incorrect access to `ILive` in `BeatmapSkinResources` tests

This commit is contained in:
Dean Herbert 2022-01-10 12:39:49 +09:00
parent e5af673b01
commit 7e7784b78a
1 changed files with 6 additions and 2 deletions

View File

@ -26,8 +26,12 @@ public class TestSceneBeatmapSkinResources : OsuTestScene
private void load()
{
var imported = beatmaps.Import(new ZipArchiveReader(TestResources.OpenResource("Archives/ogg-beatmap.osz"))).GetResultSafely();
beatmap = beatmaps.GetWorkingBeatmap(imported?.Value.Beatmaps[0]);
beatmap.LoadTrack();
imported?.PerformRead(s =>
{
beatmap = beatmaps.GetWorkingBeatmap(s.Beatmaps[0]);
beatmap.LoadTrack();
});
}
[Test]