Skip to content

Commit

Permalink
fix tests with delay events
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Oct 21, 2023
1 parent d1c3f00 commit 994f267
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Content.IntegrationTests/Tests/CargoTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ await server.WaitAssertion(() =>
}
mapManager.DeleteMap(mapId);
});

await server.WaitRunTicks(5);
await pair.CleanReturnAsync();
}

Expand Down
2 changes: 1 addition & 1 deletion Content.IntegrationTests/Tests/EntityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ await server.WaitAssertion(() =>
}
});
});

await server.WaitRunTicks(5);
await pair.CleanReturnAsync();
}
}
Expand Down
5 changes: 4 additions & 1 deletion Content.Server/Backmen/Shipwrecked/NPCZombieSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ public override void Initialize()

private void OnZombifyEntity(NpcZombieMakeEvent ev)
{

if (TerminatingOrDeleted(ev.Target))
{
return;
}
_zombieSystem.ZombifyEntity(ev.Target);


Expand Down

0 comments on commit 994f267

Please sign in to comment.