mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 23:02:56 +08:00
More hardening of TestMultiplayerClient
to attempt to fix test failures
This commit is contained in:
parent
07929b440a
commit
e75ae4a37b
@ -208,6 +208,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
|
|
||||||
protected override async Task<MultiplayerRoom> JoinRoom(long roomId, string? password = null)
|
protected override async Task<MultiplayerRoom> JoinRoom(long roomId, string? password = null)
|
||||||
{
|
{
|
||||||
|
if (RoomJoined || ServerAPIRoom != null)
|
||||||
|
throw new InvalidOperationException("Already joined a room");
|
||||||
|
|
||||||
roomId = clone(roomId);
|
roomId = clone(roomId);
|
||||||
password = clone(password);
|
password = clone(password);
|
||||||
|
|
||||||
@ -260,6 +263,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
protected override Task LeaveRoomInternal()
|
protected override Task LeaveRoomInternal()
|
||||||
{
|
{
|
||||||
RoomJoined = false;
|
RoomJoined = false;
|
||||||
|
ServerAPIRoom = null;
|
||||||
|
ServerRoom = null;
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user