From 70cbb467b397c2c30d2c607a03aa037d1b1deccb Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Sun, 31 Dec 2023 17:05:14 +0100 Subject: [PATCH] Clean up test code --- .../Tests/DeltaV/CrimeassistTest.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Content.IntegrationTests/Tests/DeltaV/CrimeassistTest.cs b/Content.IntegrationTests/Tests/DeltaV/CrimeassistTest.cs index aa553e5bb6d..2e5c7605fa8 100644 --- a/Content.IntegrationTests/Tests/DeltaV/CrimeassistTest.cs +++ b/Content.IntegrationTests/Tests/DeltaV/CrimeassistTest.cs @@ -17,22 +17,13 @@ public async Task CrimeAssistValid() var server = pair.Server; await server.WaitIdleAsync(); - var mapManager = server.ResolveDependency(); var prototypeManager = server.ResolveDependency(); - - var testMap = await pair.CreateTestMap(); - - // Get all CrimeAssistPage var allProtos = prototypeManager.EnumeratePrototypes().ToArray(); await server.WaitAssertion(() => { foreach (var proto in allProtos) { - // Assert that ID is unique, and not present a second time in allProtos - Assert.That(allProtos.Count(p => p.ID == proto.ID), Is.EqualTo(1), - $"CrimeAssistPage {proto.ID} is not unique!"); - if (proto.LocKey != null) { Assert.That(Loc.TryGetString(proto.LocKey, out var _), @@ -81,12 +72,6 @@ await server.WaitAssertion(() => $"CrimeAssistPage {proto.ID} has invalid OnNo {proto.OnNo}!"); } } - - // Because Server/Client pairs can be re-used between Tests, we - // need to clean up anything that might affect other tests, - // otherwise this pair cannot be considered clean, and the - // CleanReturnAsync call would need to be removed. - mapManager.DeleteMap(testMap.MapId); }); await pair.CleanReturnAsync();