mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:42:58 +08:00
Fix failing large offset test
If we are going to continue to let the underlying clock process frames, there needs to be a bit of lenience to allow the backwards seek on resume (to play back over the freq ramp period). The test is meant to be ensuring we don't skip the full offset amount, so div10 seems pretty safe.
This commit is contained in:
parent
27ad224f13
commit
062a6fcc18
@ -66,7 +66,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
Player.OnUpdate += _ =>
|
||||
{
|
||||
double currentTime = Player.GameplayClockContainer.CurrentTime;
|
||||
alwaysGoingForward &= currentTime >= lastTime;
|
||||
alwaysGoingForward &= currentTime >= lastTime - 500;
|
||||
lastTime = currentTime;
|
||||
};
|
||||
});
|
||||
@ -77,7 +77,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
|
||||
resumeAndConfirm();
|
||||
|
||||
AddAssert("time didn't go backwards", () => alwaysGoingForward);
|
||||
AddAssert("time didn't go too far backwards", () => alwaysGoingForward);
|
||||
|
||||
AddStep("reset offset", () => LocalConfig.SetValue(OsuSetting.AudioOffset, 0.0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user