mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 10:37:46 +08: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:
|
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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user