1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:52:54 +08:00

Wait for track to start running before seeking

This commit is contained in:
smoogipoo 2019-06-14 19:51:31 +09:00
parent 95082d2fcc
commit 0c293be89c

View File

@ -44,6 +44,7 @@ namespace osu.Game.Tests.Visual.Gameplay
[Test] [Test]
public void TestNoJudgementsOnRewind() public void TestNoJudgementsOnRewind()
{ {
AddUntilStep("wait for track to start running", () => track.IsRunning);
addSeekStep(3000); addSeekStep(3000);
AddAssert("all judged", () => player.DrawableRuleset.Playfield.AllHitObjects.All(h => h.Judged)); AddAssert("all judged", () => player.DrawableRuleset.Playfield.AllHitObjects.All(h => h.Judged));
AddStep("clear results", () => player.AppliedResults.Clear()); AddStep("clear results", () => player.AppliedResults.Clear());