Try fix RestartTest (#36725)
This commit is contained in:
@@ -85,7 +85,7 @@ public sealed class FailAndStartPresetTest
|
||||
Assert.That(ticker.PlayerGameStatuses[client.User!.Value], Is.EqualTo(PlayerGameStatus.NotReadyToPlay));
|
||||
|
||||
// Try to start nukeops without readying up
|
||||
await pair.WaitCommand("setgamepreset TestPresetTenPlayers");
|
||||
await pair.WaitCommand("setgamepreset TestPresetTenPlayers 9999");
|
||||
await pair.WaitCommand("startround");
|
||||
await pair.RunTicksSync(10);
|
||||
|
||||
@@ -99,7 +99,7 @@ public sealed class FailAndStartPresetTest
|
||||
// Ready up and start nukeops
|
||||
await pair.WaitClientCommand("toggleready True");
|
||||
Assert.That(ticker.PlayerGameStatuses[client.User!.Value], Is.EqualTo(PlayerGameStatus.ReadyToPlay));
|
||||
await pair.WaitCommand("setgamepreset TestPreset");
|
||||
await pair.WaitCommand("setgamepreset TestPreset 9999");
|
||||
await pair.WaitCommand("startround");
|
||||
await pair.RunTicksSync(10);
|
||||
|
||||
|
||||
@@ -111,6 +111,10 @@ public sealed partial class GameTicker
|
||||
if (CurrentPreset is null)
|
||||
ResetCountdown = resetDelay.Value - 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
ResetCountdown = null;
|
||||
}
|
||||
|
||||
Preset = preset;
|
||||
ValidateMap();
|
||||
|
||||
Reference in New Issue
Block a user