1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Schedule cross thread access in test case

This commit is contained in:
Dean Herbert 2018-12-03 18:43:39 +09:00
parent 14d9f1d8bb
commit bc9290bfcb

View File

@ -98,8 +98,11 @@ namespace osu.Game.Tests.Visual
[SetUp] [SetUp]
public virtual void SetUp() public virtual void SetUp()
{ {
manager?.Delete(manager.GetAllUsableBeatmapSets()); Schedule(() =>
Child = songSelect = new TestSongSelect(); {
manager?.Delete(manager.GetAllUsableBeatmapSets());
Child = songSelect = new TestSongSelect();
});
} }
[Test] [Test]