1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:23:02 +08:00

Revert unintentional changes

This commit is contained in:
Dean Herbert 2020-07-07 17:42:20 +09:00
parent 88b2a12c09
commit c74bfd5c88
2 changed files with 15 additions and 2 deletions

View File

@ -21,6 +21,19 @@ namespace osu.Game.Tests.Visual
AddStep("set test data", () => currentTestData = testData);
});
public override void TearDownSteps()
{
AddUntilStep("test passed", () =>
{
if (currentTestData == null)
return true;
return currentTestData.PassCondition?.Invoke() ?? false;
});
base.TearDownSteps();
}
protected sealed override IBeatmap CreateBeatmap(RulesetInfo ruleset) => currentTestData?.Beatmap ?? base.CreateBeatmap(ruleset);
protected sealed override TestPlayer CreatePlayer(Ruleset ruleset)

View File

@ -33,8 +33,8 @@ namespace osu.Game.Tests.Visual
[SetUpSteps]
public virtual void SetUpSteps() => addExitAllScreensStep();
// [TearDownSteps]
// public virtual void TearDownSteps() => addExitAllScreensStep();
[TearDownSteps]
public virtual void TearDownSteps() => addExitAllScreensStep();
private void addExitAllScreensStep()
{