Change load order to ensure runner is loaded before blocking op

This commit is contained in:
Dean Herbert
2018-04-22 04:10:06 +09:00
parent 44a9aa529a
commit 64ddee5646
3 changed files with 20 additions and 17 deletions

View File

@ -15,10 +15,13 @@ namespace osu.Game.Tests.Visual
{
protected override string MainResourceFile => File.Exists(base.MainResourceFile) ? base.MainResourceFile : Assembly.GetExecutingAssembly().Location;
private readonly TestCaseTestRunner.TestRunner runner;
private TestCaseTestRunner.TestRunner runner;
public OsuTestCaseTestRunner()
protected override void LoadAsyncComplete()
{
// this has to be run here rather than LoadComplete because
// TestCase.cs is checking the IsLoaded state (on another thread) and expects
// the runner to be loaded at that point.
Add(runner = new TestCaseTestRunner.TestRunner());
}