1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Make sure test is in a break

...because apparently it may take a while to update the flag.
This commit is contained in:
Bartłomiej Dach 2023-11-10 16:30:21 +09:00
parent 1818a84034
commit b7938e78a0
No known key found for this signature in database

View File

@ -75,6 +75,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
loadPlayer();
AddStep("seek to 2000", () => currentPlayer.GameplayClockContainer.Seek(2000));
AddUntilStep("wait until 2000", () => currentPlayer.GameplayClockContainer.CurrentTime, () => Is.GreaterThanOrEqualTo(2000));
AddUntilStep("wait until break entered", () => currentPlayer.IsBreakTime.Value);
AddStep("touch playfield", () =>
{
var touch = new Touch(TouchSource.Touch1, currentPlayer.DrawableRuleset.Playfield.ScreenSpaceDrawQuad.Centre);