mirror of
https://github.com/ppy/osu
synced 2025-01-25 15:23:02 +00:00
Add temporary debug code for multiplayer test failures
This commit is contained in:
parent
1082ffec9d
commit
3e634a14a4
@ -782,7 +782,21 @@ namespace osu.Game.Online.Multiplayer
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new AggregateException($"Item: {JsonConvert.SerializeObject(createPlaylistItem(item))}\n\nRoom:{JsonConvert.SerializeObject(APIRoom)}", ex);
|
||||
// Temporary code to attempt to figure out long-term failing tests.
|
||||
bool success = true;
|
||||
int indexOf = -1234;
|
||||
|
||||
try
|
||||
{
|
||||
indexOf = Room.Playlist.IndexOf(Room.Playlist.Single(existing => existing.ID == item.ID));
|
||||
Room.Playlist[indexOf] = item;
|
||||
}
|
||||
catch
|
||||
{
|
||||
success = false;
|
||||
}
|
||||
|
||||
throw new AggregateException($"Index: {indexOf} Length: {Room.Playlist.Count} Retry success: {success} Item: {JsonConvert.SerializeObject(createPlaylistItem(item))}\n\nRoom:{JsonConvert.SerializeObject(APIRoom)}", ex);
|
||||
}
|
||||
|
||||
ItemChanged?.Invoke(item);
|
||||
|
Loading…
Reference in New Issue
Block a user