mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
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:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user