mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 17:52:56 +08:00
Fix constructor test failures
This commit is contained in:
parent
90c2f7bd89
commit
1e26df64b6
@ -37,7 +37,14 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
public override void TearDownSteps()
|
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();
|
base.TearDownSteps();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user