1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Revert test changes fully to clean up diff

This commit is contained in:
Bartłomiej Dach 2023-10-26 09:14:59 +02:00
parent ca4b09f8ef
commit 2ba02416c2
No known key found for this signature in database

View File

@ -262,10 +262,9 @@ namespace osu.Game.Tests.Visual.Playlists
for (int i = 1; i <= scores_per_result; i++) for (int i = 1; i <= scores_per_result; i++)
{ {
int nextLowest = getNextLowestScoreId();
multiplayerUserScore.ScoresAround.Lower.Scores.Add(new MultiplayerScore multiplayerUserScore.ScoresAround.Lower.Scores.Add(new MultiplayerScore
{ {
ID = nextLowest, ID = getNextLowestScoreId(),
Accuracy = userScore.Accuracy, Accuracy = userScore.Accuracy,
Passed = true, Passed = true,
Rank = userScore.Rank, Rank = userScore.Rank,
@ -278,10 +277,9 @@ namespace osu.Game.Tests.Visual.Playlists
}, },
}); });
int nextHighest = getNextHighestScoreId();
multiplayerUserScore.ScoresAround.Higher.Scores.Add(new MultiplayerScore multiplayerUserScore.ScoresAround.Higher.Scores.Add(new MultiplayerScore
{ {
ID = nextHighest, ID = getNextHighestScoreId(),
Accuracy = userScore.Accuracy, Accuracy = userScore.Accuracy,
Passed = true, Passed = true,
Rank = userScore.Rank, Rank = userScore.Rank,
@ -311,10 +309,9 @@ namespace osu.Game.Tests.Visual.Playlists
for (int i = 1; i <= scores_per_result; i++) for (int i = 1; i <= scores_per_result; i++)
{ {
int id = sort == "score_asc" ? getNextHighestScoreId() : getNextLowestScoreId();
result.Scores.Add(new MultiplayerScore result.Scores.Add(new MultiplayerScore
{ {
ID = id, ID = sort == "score_asc" ? getNextHighestScoreId() : getNextLowestScoreId(),
Accuracy = 1, Accuracy = 1,
Passed = true, Passed = true,
Rank = ScoreRank.X, Rank = ScoreRank.X,