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

Better ensure track restarted

This commit is contained in:
Dean Herbert 2020-03-25 16:02:20 +09:00
parent a9488a92a9
commit d42c872f8f

View File

@ -45,7 +45,7 @@ namespace osu.Game.Tests.Visual.Editor
AddUntilStep("Clock stops", () => !Clock.IsRunning);
AddAssert("Clock stopped at end", () => Clock.CurrentTime == Clock.TrackLength);
AddStep("Start clock again", Clock.Start);
AddAssert("Clock looped", () => Clock.IsRunning && Clock.CurrentTime < Clock.TrackLength);
AddAssert("Clock looped to start", () => Clock.IsRunning && Clock.CurrentTime < 500);
}
}
}