1
0
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:
smoogipoo 2021-07-19 20:01:44 +09:00
parent 063f14da98
commit 8c0daa89a0

View File

@ -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