Apply same fix to `OsuGameTestScene`

This commit is contained in:
Dean Herbert 2022-01-24 17:05:49 +09:00
parent 1e483ece32
commit e22aea0613
1 changed files with 6 additions and 2 deletions

View File

@ -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()