mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 21:47:31 +09:00
Fix test failures due to double BeginPlaying
calls
This commit is contained in:
parent
017f5a9b9b
commit
2212bea17f
@ -36,7 +36,7 @@ using osuTK.Graphics;
|
|||||||
namespace osu.Game.Tests.Visual.Background
|
namespace osu.Game.Tests.Visual.Background
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestSceneUserDimBackgrounds : OsuManualInputManagerTestScene
|
public class TestSceneUserDimBackgrounds : ScreenTestScene
|
||||||
{
|
{
|
||||||
private DummySongSelect songSelect;
|
private DummySongSelect songSelect;
|
||||||
private TestPlayerLoader playerLoader;
|
private TestPlayerLoader playerLoader;
|
||||||
@ -56,14 +56,12 @@ namespace osu.Game.Tests.Visual.Background
|
|||||||
Beatmap.SetDefault();
|
Beatmap.SetDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
[SetUp]
|
public override void SetUpSteps()
|
||||||
public virtual void SetUp() => Schedule(() =>
|
|
||||||
{
|
{
|
||||||
var stack = new OsuScreenStack { RelativeSizeAxes = Axes.Both };
|
base.SetUpSteps();
|
||||||
Child = stack;
|
|
||||||
|
|
||||||
stack.Push(songSelect = new DummySongSelect());
|
AddStep("push song select", () => Stack.Push(songSelect = new DummySongSelect()));
|
||||||
});
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// User settings should always be ignored on song select screen.
|
/// User settings should always be ignored on song select screen.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user