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