mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09: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);
|
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)
|
var localUser = new MultiplayerRoomUser(api.LocalUser.Value.Id)
|
||||||
{
|
{
|
||||||
User = api.LocalUser.Value
|
User = api.LocalUser.Value
|
||||||
|
Reference in New Issue
Block a user