1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:35:10 +08:00

Fix test failures due to gameplay clock not being unpaused

This commit is contained in:
Dean Herbert 2020-07-28 17:09:38 +09:00
parent 91c2afe9f1
commit ca434e82d9

View File

@ -25,6 +25,8 @@ namespace osu.Game.Tests.Visual.Gameplay
[SetUp] [SetUp]
public void SetUp() => Schedule(() => public void SetUp() => Schedule(() =>
{ {
gameplayClock.IsPaused.Value = false;
Children = new Drawable[] Children = new Drawable[]
{ {
new Container new Container
@ -42,9 +44,10 @@ namespace osu.Game.Tests.Visual.Gameplay
DrawableSample sample = null; DrawableSample sample = null;
AddStep("start sample with looping", () => AddStep("start sample with looping", () =>
{ {
sample = skinnableSound.ChildrenOfType<DrawableSample>().First();
skinnableSound.Looping = true; skinnableSound.Looping = true;
skinnableSound.Play(); skinnableSound.Play();
sample = skinnableSound.ChildrenOfType<DrawableSample>().First();
}); });
AddUntilStep("wait for sample to start playing", () => sample.Playing); AddUntilStep("wait for sample to start playing", () => sample.Playing);