From e3f2ffe19cde9f8aac8324b846cf71cd762b2022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Tue, 12 Aug 2025 13:21:12 +0200 Subject: [PATCH] Fix test scene doing very weird things for (seemingly) no reason --- .../Visual/Gameplay/TestSceneUnstableRateCounter.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/osu.Game.Tests/Visual/Gameplay/TestSceneUnstableRateCounter.cs b/osu.Game.Tests/Visual/Gameplay/TestSceneUnstableRateCounter.cs index 9b9e3e725b..3c48470bbe 100644 --- a/osu.Game.Tests/Visual/Gameplay/TestSceneUnstableRateCounter.cs +++ b/osu.Game.Tests/Visual/Gameplay/TestSceneUnstableRateCounter.cs @@ -39,8 +39,7 @@ namespace osu.Game.Tests.Visual.Gameplay hitWindows.SetDifficulty(5); } - [SetUpSteps] - public void SetUp() + public override void SetUpSteps() { AddStep("Reset Score Processor", () => scoreProcessor.Reset()); base.SetUpSteps(); @@ -87,16 +86,12 @@ namespace osu.Game.Tests.Visual.Gameplay { AddRepeatStep("Set UR to 250", () => applyJudgement(25, true), 4); - base.SetUpSteps(); - AddUntilStep("UR = 250", () => this.ChildrenOfType().All(c => c.Current.Value == 250)); } [Test] public void TestStaticRateChange() { - base.SetUpSteps(); - AddRepeatStep("Set UR to 250 at 1.5x", () => applyJudgement(25, true, 1.5), 4); AddUntilStep("UR = 250/1.5", () => this.ChildrenOfType().All(c => c.Current.Value == (int)Math.Round(250.0 / 1.5))); @@ -105,8 +100,6 @@ namespace osu.Game.Tests.Visual.Gameplay [Test] public void TestDynamicRateChange() { - base.SetUpSteps(); - AddRepeatStep("Set UR to 100 at 1.0x", () => applyJudgement(10, true, 1.0), 4); AddRepeatStep("Bring UR to 100 at 1.5x", () => applyJudgement(15, true, 1.5), 4);