mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Apply same fix to OsuGameTestScene
This commit is contained in:
parent
1e483ece32
commit
e22aea0613
@ -5,6 +5,7 @@ using System;
|
||||
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 @@ namespace osu.Game.Tests.Visual
|
||||
[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
Block a user