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

Fix occasional failures in TestSceneDeleteLocalScore

This commit is contained in:
Dean Herbert 2022-01-29 23:12:57 +09:00
parent 6f54f8ad78
commit a915b9cd30

View File

@ -135,11 +135,9 @@ namespace osu.Game.Tests.Visual.UserInterface
[SetUpSteps]
public void SetupSteps()
{
// Ensure the leaderboard has finished async-loading drawables
AddUntilStep("wait for drawables", () => leaderboard.ChildrenOfType<LeaderboardScore>().Any());
// Ensure the leaderboard items have finished showing up
AddStep("finish transforms", () => leaderboard.FinishTransforms(true));
AddUntilStep("wait for drawables", () => leaderboard.ChildrenOfType<LeaderboardScore>().Any());
}
[Test]