mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 00:20:38 +08:00
Make test multiplayer client validate password
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user