Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SelectedRoom from online play tests #31867

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

smoogipoo
Copy link
Contributor

It's one of those "magic" abstractions that I'd prefer to not exist.

In multiplayer tests, if a room is required (generally the case), you can put a:

public override void SetUpSteps()
{
    base.SetUpSteps();
    JoinDefaultRoom();
}

See for example: https://github.com/ppy/osu/blob/205d6ecffbc989d75c1a32e53a29a9342b88c175/osu.Game.Tests/Visual/Multiplayer/TestSceneMultiplayerQueueList.cs

smoogipoo and others added 22 commits January 17, 2025 18:12
Relevant functionality has been removed from `RoomManager` in the
process.
In particular, when the exception is:
`AggregateException { AggregateException { HubException } }`,
then the existing code will only unwrap the first aggregate exception.

The overlay's code was copied from the extension so both have been
adjusted here.
I believe once upon a time the `SelectedRoom` bindable used to be bound
to `RoomManager.JoinedRoom` or similar. But now it's effectively private
to the lounge subscreen and so a lease is unnecessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants