mirror of
https://github.com/osukey/osukey.git
synced 2025-06-09 05:19:11 +09:00
Reference constant for test startup delay
This commit is contained in:
parent
aa99c192d0
commit
6d30a1a80f
@ -17,6 +17,7 @@ using osu.Game.Online.Spectator;
|
|||||||
using osu.Game.Replays.Legacy;
|
using osu.Game.Replays.Legacy;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
using osu.Game.Screens.OnlinePlay.Multiplayer.Spectate;
|
using osu.Game.Screens.OnlinePlay.Multiplayer.Spectate;
|
||||||
|
using osu.Game.Screens.OnlinePlay.Multiplayer.Spectate.Sync;
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osu.Game.Tests.Beatmaps.IO;
|
using osu.Game.Tests.Beatmaps.IO;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
@ -128,7 +129,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestPlayersDoNotStartSimultaneouslyIfBufferingFor15Seconds()
|
public void TestPlayersDoNotStartSimultaneouslyIfBufferingForMaximumStartDelay()
|
||||||
{
|
{
|
||||||
start(new[] { 55, 56 });
|
start(new[] { 55, 56 });
|
||||||
loadSpectateScreen();
|
loadSpectateScreen();
|
||||||
@ -138,8 +139,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
checkPausedInstant(55, true);
|
checkPausedInstant(55, true);
|
||||||
checkPausedInstant(56, true);
|
checkPausedInstant(56, true);
|
||||||
|
|
||||||
// Wait 15 seconds...
|
// Wait for the start delay seconds...
|
||||||
AddWaitStep("wait 15 seconds", (int)(15000 / TimePerAction));
|
AddWaitStep("wait maximum start delay seconds", (int)(CatchUpSyncManager.MAXIMUM_START_DELAY / TimePerAction));
|
||||||
|
|
||||||
// Player 1 should start playing by itself, player 2 should remain paused.
|
// Player 1 should start playing by itself, player 2 should remain paused.
|
||||||
checkPausedInstant(55, false);
|
checkPausedInstant(55, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user