mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Fix test edge cases
This commit is contained in:
parent
c871a25dfa
commit
3292ef33fd
@ -267,7 +267,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
private void networkFailure()
|
||||
{
|
||||
leaderboard.Beatmap = new BeatmapInfo();
|
||||
leaderboard.Beatmap = new BeatmapInfo { Ruleset = rulesets.GetRuleset(0) };
|
||||
}
|
||||
|
||||
private class FailableLeaderboard : Leaderboard
|
||||
|
@ -215,7 +215,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
return;
|
||||
}
|
||||
|
||||
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value, Scope);
|
||||
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value ?? Beatmap.Ruleset, Scope);
|
||||
getScoresRequest.Success += r =>
|
||||
{
|
||||
Scores = r.Scores;
|
||||
|
Loading…
Reference in New Issue
Block a user