mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Fix tests
This commit is contained in:
parent
36bd83bb80
commit
8eeb5ae06b
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user