Avoid beatmap load call in IntroScreen

This commit is contained in:
Dean Herbert
2020-08-21 15:50:14 +09:00
parent f7e4feee34
commit 0ae460fb8f
3 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,7 @@
using NUnit.Framework;
using osu.Framework.Screens;
using osu.Framework.Utils;
using osu.Game.Screens.Menu;
namespace osu.Game.Tests.Visual.Menus
@ -15,7 +16,7 @@ namespace osu.Game.Tests.Visual.Menus
public TestSceneIntroWelcome()
{
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);
}
}