1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 19:44:22 +08:00

Fix constructor test failures

This commit is contained in:
smoogipoo
2020-03-03 12:58:07 +09:00
Unverified
parent 90c2f7bd89
commit 1e26df64b6
+8 -1
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();
}