1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 10:37:46 +08:00

Fix tests

This commit is contained in:
Layendan 2024-07-30 17:08:56 -07:00
parent 36bd83bb80
commit 8eeb5ae06b
2 changed files with 5 additions and 4 deletions

View File

@ -197,9 +197,8 @@ namespace osu.Game.Tests.Visual.OnlinePlay
case GetBeatmapSetRequest getBeatmapSetRequest: case GetBeatmapSetRequest getBeatmapSetRequest:
{ {
var baseBeatmap = getBeatmapSetRequest.Type == BeatmapSetLookupType.BeatmapId // Incorrect logic, see https://github.com/ppy/osu/pull/28991#issuecomment-2256721076 for reason why this change
? beatmapManager.QueryBeatmap(b => b.OnlineID == getBeatmapSetRequest.ID) var baseBeatmap = beatmapManager.QueryBeatmap(b => b.OnlineID == getBeatmapSetRequest.ID);
: beatmapManager.QueryBeatmap(b => b.BeatmapSet.OnlineID == getBeatmapSetRequest.ID);
if (baseBeatmap == null) if (baseBeatmap == null)
{ {

View File

@ -306,7 +306,9 @@ namespace osu.Game.Tests.Visual
StarRating = original.StarRating, StarRating = original.StarRating,
DifficultyName = original.DifficultyName, DifficultyName = original.DifficultyName,
} }
} },
HasFavourited = false,
FavouriteCount = 0,
}; };
foreach (var beatmap in result.Beatmaps) foreach (var beatmap in result.Beatmaps)