diff --git a/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs b/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs index 4708bd10c08..b1d4cde9f93 100644 --- a/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs +++ b/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs @@ -54,6 +54,18 @@ await server.WaitAssertion(() => await server.WaitAssertion(() => { Assert.That(sGameTicker.RunLevel, Is.EqualTo(GameRunLevel.PostRound)); + + var gameRuleEntities = entityManager.GetEntities().ToList(); + foreach (var entity in gameRuleEntities) + { + entityManager.DeleteEntity(entity); + } + + var activeGameRuleEntities = entityManager.GetEntities().ToList(); + foreach (var entity in activeGameRuleEntities) + { + entityManager.DeleteEntity(entity); + } }); ticks = sGameTiming.TickRate * (int) Math.Ceiling(maxTime.RoundEndDelay.TotalSeconds * 1.1f);