Fix TestSceneTopLocalRank.TestHighScoreSet not waiting for potentially slow realm callback

As brought to light by https://gist.github.com/smoogipoo/56eda7ab56b9d1966556f2ca7a80a847.
This commit is contained in:
Dean Herbert
2022-03-09 01:21:46 +09:00
parent 821de83e54
commit 233c8232d3

View File

@ -124,7 +124,7 @@ namespace osu.Game.Tests.Visual.SongSelect
}); });
AddUntilStep("Became present", () => topLocalRank.IsPresent); AddUntilStep("Became present", () => topLocalRank.IsPresent);
AddAssert("Correct rank", () => topLocalRank.Rank == ScoreRank.B); AddUntilStep("Correct rank", () => topLocalRank.Rank == ScoreRank.B);
AddStep("Add higher score for current user", () => AddStep("Add higher score for current user", () =>
{ {
@ -137,7 +137,7 @@ namespace osu.Game.Tests.Visual.SongSelect
scoreManager.Import(testScoreInfo2); scoreManager.Import(testScoreInfo2);
}); });
AddAssert("Correct rank", () => topLocalRank.Rank == ScoreRank.S); AddUntilStep("Correct rank", () => topLocalRank.Rank == ScoreRank.S);
} }
} }
} }