1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 00:02:54 +08:00

Fix constructor test failures

This commit is contained in:
smoogipoo 2020-03-03 12:58:07 +09:00
parent 90c2f7bd89
commit 1e26df64b6

View File

@ -37,7 +37,14 @@ namespace osu.Game.Tests.Visual
public override void TearDownSteps()
{
AddUntilStep("test passed", () => currentTest?.PassCondition?.Invoke() ?? false);
AddUntilStep("test passed", () =>
{
if (currentTest == null)
return true;
return currentTest.PassCondition?.Invoke() ?? false;
});
base.TearDownSteps();
}