From: Tayrtahn Date: Mon, 24 Mar 2025 18:59:13 +0000 (-0400) Subject: Allow NukeOps test to function with multiple RuleGrids (#36049) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ae07c5d841a4c2939be427b9ef9d80dccf27f668;p=space-station-14.git Allow NukeOps test to function with multiple RuleGrids (#36049) --- diff --git a/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs b/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs index 5790e414f3..86bcffd336 100644 --- a/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs +++ b/Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs @@ -152,14 +152,10 @@ public sealed class NukeOpsTest Assert.That(roleSys.MindGetAllRoleInfo(mindCrew).Any(x => nukeroles.Contains(x.Prototype)), Is.False); } - var ruleGridComps = entMan.AllComponents(); - Assert.That(ruleGridComps, Has.Length.EqualTo(1), - $"Unexpected RuleGrid(s) detected! {string.Join(',', ruleGridComps.Select(e => server.EntMan.ToPrettyString(e.Uid)))}"); - // The game rule exists, and all the stations/shuttles/maps are properly initialized var rule = entMan.AllComponents().Single(); var ruleComp = rule.Component; - var gridsRule = ruleGridComps.Single().Component; + var gridsRule = entMan.GetComponent(rule.Uid); foreach (var grid in gridsRule.MapGrids) { Assert.That(entMan.EntityExists(grid));