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:
parent
91c2afe9f1
commit
ca434e82d9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user