Schedule child mutation in test setup

This commit is contained in:
Bartłomiej Dach 2019-12-27 17:16:43 +01:00
parent 3621362a48
commit d828b31ae4

View File

@ -37,7 +37,7 @@ namespace osu.Game.Tests.Visual.Gameplay
private ScheduledDelegate hitObjectSpawnDelegate; private ScheduledDelegate hitObjectSpawnDelegate;
[SetUp] [SetUp]
public void Setup() public void Setup() => Schedule(() =>
{ {
Child = new GridContainer Child = new GridContainer
{ {
@ -78,7 +78,7 @@ namespace osu.Game.Tests.Visual.Gameplay
}; };
setUpHitObjects(); setUpHitObjects();
} });
private void setUpHitObjects() private void setUpHitObjects()
{ {