From ac4f4965350518b9931dcdbea10503c049241df0 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 13 Aug 2023 09:22:57 +1200 Subject: [PATCH] Fix HumanInventoryUniformSlotsTest (#19028) --- .../Tests/HumanInventoryUniformSlotsTest.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs b/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs index 2ee0c27dae..f99d1e656f 100644 --- a/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs +++ b/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs @@ -1,5 +1,6 @@ using Content.Shared.Inventory; using Robust.Shared.GameObjects; +using Robust.Shared.Map; namespace Content.IntegrationTests.Tests { @@ -66,6 +67,7 @@ namespace Content.IntegrationTests.Tests EntityUid pocketItem = default; InventorySystem invSystem = default!; + var mapMan = server.ResolveDependency(); var entityMan = server.ResolveDependency(); await server.WaitAssertion(() => @@ -126,6 +128,8 @@ namespace Content.IntegrationTests.Tests Assert.That(!invSystem.TryGetSlotEntity(human, "id", out _)); Assert.That(!invSystem.TryGetSlotEntity(human, "pocket1", out _)); }); + + mapMan.DeleteMap(testMap.MapId); }); await pairTracker.CleanReturnAsync();