Fix crash when gameplay starts while in multi-spectator screen

This commit is contained in:
Dan Balasescu
2022-02-03 23:22:08 +09:00
parent d4ebff6ea1
commit b41655d5b9
2 changed files with 8 additions and 0 deletions

View File

@ -914,6 +914,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
AddUntilStep("wait for loading", () => client.Room?.State == MultiplayerRoomState.WaitingForLoad);
AddStep("set player loaded", () => client.ChangeUserState(1234, MultiplayerUserState.Loaded));
AddUntilStep("wait for gameplay to start", () => client.Room?.State == MultiplayerRoomState.Playing);
AddUntilStep("wait for local user to enter spectator", () => multiplayerComponents.CurrentScreen is MultiSpectatorScreen);
}
}