mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Make test multiplayer client validate password
This commit is contained in:
parent
063f14da98
commit
8c0daa89a0
@ -119,6 +119,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
{
|
||||
var apiRoom = roomManager.Rooms.Single(r => r.RoomID.Value == roomId);
|
||||
|
||||
if (password != apiRoom.Password.Value)
|
||||
throw new InvalidOperationException("Invalid password.");
|
||||
|
||||
var localUser = new MultiplayerRoomUser(api.LocalUser.Value.Id)
|
||||
{
|
||||
User = api.LocalUser.Value
|
||||
|
Loading…
Reference in New Issue
Block a user