From 994f2679368621b4c13a73322712ecfcd3ca86e3 Mon Sep 17 00:00:00 2001 From: Zack Backmen Date: Sat, 21 Oct 2023 04:10:25 +0300 Subject: [PATCH] fix tests with delay events --- Content.IntegrationTests/Tests/CargoTest.cs | 2 +- Content.IntegrationTests/Tests/EntityTest.cs | 2 +- Content.Server/Backmen/Shipwrecked/NPCZombieSystem.cs | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Content.IntegrationTests/Tests/CargoTest.cs b/Content.IntegrationTests/Tests/CargoTest.cs index 0b9de6993eb..46e2b6a8887 100644 --- a/Content.IntegrationTests/Tests/CargoTest.cs +++ b/Content.IntegrationTests/Tests/CargoTest.cs @@ -141,7 +141,7 @@ await server.WaitAssertion(() => } mapManager.DeleteMap(mapId); }); - + await server.WaitRunTicks(5); await pair.CleanReturnAsync(); } diff --git a/Content.IntegrationTests/Tests/EntityTest.cs b/Content.IntegrationTests/Tests/EntityTest.cs index 0f17151b059..ad86ceaaaef 100644 --- a/Content.IntegrationTests/Tests/EntityTest.cs +++ b/Content.IntegrationTests/Tests/EntityTest.cs @@ -393,7 +393,7 @@ await server.WaitAssertion(() => } }); }); - + await server.WaitRunTicks(5); await pair.CleanReturnAsync(); } } diff --git a/Content.Server/Backmen/Shipwrecked/NPCZombieSystem.cs b/Content.Server/Backmen/Shipwrecked/NPCZombieSystem.cs index 21402d6d848..928918dc243 100644 --- a/Content.Server/Backmen/Shipwrecked/NPCZombieSystem.cs +++ b/Content.Server/Backmen/Shipwrecked/NPCZombieSystem.cs @@ -39,7 +39,10 @@ public override void Initialize() private void OnZombifyEntity(NpcZombieMakeEvent ev) { - + if (TerminatingOrDeleted(ev.Target)) + { + return; + } _zombieSystem.ZombifyEntity(ev.Target);