mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:57:52 +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()
|
private void networkFailure()
|
||||||
{
|
{
|
||||||
leaderboard.Beatmap = new BeatmapInfo();
|
leaderboard.Beatmap = new BeatmapInfo { Ruleset = rulesets.GetRuleset(0) };
|
||||||
}
|
}
|
||||||
|
|
||||||
private class FailableLeaderboard : Leaderboard
|
private class FailableLeaderboard : Leaderboard
|
||||||
|
@ -215,7 +215,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value, Scope);
|
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value ?? Beatmap.Ruleset, Scope);
|
||||||
getScoresRequest.Success += r =>
|
getScoresRequest.Success += r =>
|
||||||
{
|
{
|
||||||
Scores = r.Scores;
|
Scores = r.Scores;
|
||||||
|
Loading…
Reference in New Issue
Block a user