Add test coverage of remote user failing immediately failing locally

This commit is contained in:
Dean Herbert 2023-11-23 12:45:03 +09:00
parent b024065857
commit 51e2ce500d
No known key found for this signature in database

View File

@ -352,6 +352,8 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("send failed", () => spectatorClient.SendEndPlay(streamingUser.Id, SpectatedUserState.Failed));
AddUntilStep("state is failed", () => spectatorClient.WatchedUserStates[streamingUser.Id].State == SpectatedUserState.Failed);
AddUntilStep("wait for player to fail", () => player.GameplayState.HasFailed);
start();
sendFrames();
waitForPlayer();