mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix test room playlist items not getting ids
This commit is contained in:
@ -35,6 +35,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
|
||||
int currentScoreId = 0;
|
||||
int currentRoomId = 0;
|
||||
int currentPlaylistItemId = 0;
|
||||
|
||||
((DummyAPIAccess)api).HandleRequest = req =>
|
||||
{
|
||||
@ -46,6 +47,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
createdRoom.CopyFrom(createRoomRequest.Room);
|
||||
createdRoom.RoomID.Value ??= currentRoomId++;
|
||||
|
||||
for (int i = 0; i < createdRoom.Playlist.Count; i++)
|
||||
createdRoom.Playlist[i].ID = currentPlaylistItemId++;
|
||||
|
||||
rooms.Add(createdRoom);
|
||||
createRoomRequest.TriggerSuccess(createdRoom);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user