Fix headless tests

This commit is contained in:
Dean Herbert
2020-07-27 19:03:21 +09:00
parent 5fd73795f6
commit 1f8abf2cf6

View File

@ -23,7 +23,7 @@ namespace osu.Game.Tests.Visual.Gameplay
private SkinnableSound skinnableSound; private SkinnableSound skinnableSound;
[SetUp] [SetUp]
public void SetUp() public void SetUp() => Schedule(() =>
{ {
Children = new Drawable[] Children = new Drawable[]
{ {
@ -34,7 +34,7 @@ namespace osu.Game.Tests.Visual.Gameplay
Child = skinnableSound = new SkinnableSound(new SampleInfo("normal-sliderslide")) Child = skinnableSound = new SkinnableSound(new SampleInfo("normal-sliderslide"))
}, },
}; };
} });
[Test] [Test]
public void TestStoppedSoundDoesntResumeAfterPause() public void TestStoppedSoundDoesntResumeAfterPause()