mirror of https://github.com/ppy/osu
Apply same fix to `OsuGameTestScene`
This commit is contained in:
parent
1e483ece32
commit
e22aea0613
|
@ -5,6 +5,7 @@
|
|||
using System.Collections.Generic;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
|
@ -72,8 +73,11 @@ public virtual void SetUpSteps()
|
|||
[TearDownSteps]
|
||||
public void TearDownSteps()
|
||||
{
|
||||
AddStep("exit game", () => Game.Exit());
|
||||
AddUntilStep("wait for game exit", () => Game.Parent == null);
|
||||
if (DebugUtils.IsNUnitRunning)
|
||||
{
|
||||
AddStep("exit game", () => Game.Exit());
|
||||
AddUntilStep("wait for game exit", () => Game.Parent == null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void CreateGame()
|
||||
|
|
Loading…
Reference in New Issue