From d8d0889807759d79927dfb3e62838c6c43c50891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Tue, 27 Oct 2020 21:35:28 +0100 Subject: [PATCH] Fix power integration test --- Content.IntegrationTests/Tests/PowerTest.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Content.IntegrationTests/Tests/PowerTest.cs b/Content.IntegrationTests/Tests/PowerTest.cs index bb355736a0..3367841cc6 100644 --- a/Content.IntegrationTests/Tests/PowerTest.cs +++ b/Content.IntegrationTests/Tests/PowerTest.cs @@ -1,4 +1,5 @@ using System.Threading.Tasks; +using Content.Server.GameObjects.Components; using Content.Server.GameObjects.Components.Power; using Content.Server.GameObjects.Components.Power.ApcNetComponents; using Content.Server.GameObjects.Components.Power.PowerNetComponents; @@ -34,6 +35,11 @@ namespace Content.IntegrationTests.Tests var consumerEnt1 = entityMan.SpawnEntity("DebugConsumer", grid.ToCoordinates(0, 1)); var consumerEnt2 = entityMan.SpawnEntity("DebugConsumer", grid.ToCoordinates(0, 2)); + if (generatorEnt.TryGetComponent(out AnchorableComponent anchorable)) + { + anchorable.TryAnchor(null, force:true); + } + Assert.That(generatorEnt.TryGetComponent(out supplier)); Assert.That(consumerEnt1.TryGetComponent(out consumer1)); Assert.That(consumerEnt2.TryGetComponent(out consumer2));