1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 09:12:54 +08:00

Fix test failure

This commit is contained in:
Dean Herbert 2019-12-06 15:29:02 +09:00
parent 48c6279e8b
commit 12f1c9e088

View File

@ -76,8 +76,7 @@ namespace osu.Game.Tests.Visual.Gameplay
[Test] [Test]
public void TestEarlyExit() public void TestEarlyExit()
{ {
AddStep("apply mods", () => Mods.Value = new[] { new OsuModNightcore() }); AddStep("load dummy beatmap", () => ResetPlayer(false, () => Mods.Value = new[] { new OsuModNightcore() }));
AddStep("load dummy beatmap", () => ResetPlayer(false));
AddUntilStep("wait for current", () => loader.IsCurrentScreen()); AddUntilStep("wait for current", () => loader.IsCurrentScreen());
AddAssert("mod rate applied", () => Beatmap.Value.Track.Rate != 1); AddAssert("mod rate applied", () => Beatmap.Value.Track.Rate != 1);
AddStep("exit loader", () => loader.Exit()); AddStep("exit loader", () => loader.Exit());