From 0889d6b0b03f9cf036789b358a1ae0f55567cb63 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:29:36 +1100 Subject: [PATCH] Minor test fixes (#25423) * Minor test fixes c * fix? --- Content.IntegrationTests/Pair/TestPair.cs | 4 +++- Content.IntegrationTests/Tests/Minds/MindTests.cs | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Content.IntegrationTests/Pair/TestPair.cs b/Content.IntegrationTests/Pair/TestPair.cs index ba2faacb7e..916a94c9c4 100644 --- a/Content.IntegrationTests/Pair/TestPair.cs +++ b/Content.IntegrationTests/Pair/TestPair.cs @@ -70,9 +70,11 @@ public sealed partial class TestPair if (settings.ShouldBeConnected) { Client.SetConnectTarget(Server); + await Client.WaitIdleAsync(); + var netMgr = Client.ResolveDependency(); + await Client.WaitPost(() => { - var netMgr = IoCManager.Resolve(); if (!netMgr.IsConnected) { netMgr.ClientConnect(null!, 0, null!); diff --git a/Content.IntegrationTests/Tests/Minds/MindTests.cs b/Content.IntegrationTests/Tests/Minds/MindTests.cs index c9788b80a6..3b7ecf0135 100644 --- a/Content.IntegrationTests/Tests/Minds/MindTests.cs +++ b/Content.IntegrationTests/Tests/Minds/MindTests.cs @@ -341,7 +341,6 @@ public sealed partial class MindTests var playerMan = server.ResolveDependency(); var mindSystem = entMan.EntitySysManager.GetEntitySystem(); - var ghostSystem = entMan.EntitySysManager.GetEntitySystem(); EntityUid entity = default!; EntityUid mindId = default!; @@ -381,7 +380,7 @@ public sealed partial class MindTests mob = entMan.SpawnEntity(null, new MapCoordinates()); - MakeSentientCommand.MakeSentient(mob, IoCManager.Resolve()); + MakeSentientCommand.MakeSentient(mob, entMan); mobMindId = mindSystem.CreateMind(player.UserId, "Mindy McThinker the Second"); mobMind = entMan.GetComponent(mobMindId); -- 2.52.0