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:
{
var baseBeatmap = getBeatmapSetRequest.Type == BeatmapSetLookupType.BeatmapId
? beatmapManager.QueryBeatmap(b => b.OnlineID == getBeatmapSetRequest.ID)
: beatmapManager.QueryBeatmap(b => b.BeatmapSet.OnlineID == getBeatmapSetRequest.ID);
// Incorrect logic, see https://github.com/ppy/osu/pull/28991#issuecomment-2256721076 for reason why this change
var baseBeatmap = beatmapManager.QueryBeatmap(b => b.OnlineID == getBeatmapSetRequest.ID);
if (baseBeatmap == null)
{

View File

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