mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Add ability to simulate network failures to TestSpectatorClient
This commit is contained in:
@ -68,10 +68,10 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
// For player 2, send frames in sets of 10.
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
SpectatorClient.SendFrames(PLAYER_1_ID, 1);
|
||||
SpectatorClient.SendFramesFromUser(PLAYER_1_ID, 1);
|
||||
|
||||
if (i % 10 == 0)
|
||||
SpectatorClient.SendFrames(PLAYER_2_ID, 10);
|
||||
SpectatorClient.SendFramesFromUser(PLAYER_2_ID, 10);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user