From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Wed, 23 Jul 2025 01:21:10 +0000 (+0200) Subject: Increase SpawnAndDeleteAllEntitiesOnDifferentMaps test simulation time (#38901) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c3ff6c9184889bf009a27e736cd4639a8d05ef93;p=space-station-14.git Increase SpawnAndDeleteAllEntitiesOnDifferentMaps test simulation time (#38901) wait longer --- diff --git a/Content.IntegrationTests/Tests/EntityTest.cs b/Content.IntegrationTests/Tests/EntityTest.cs index d78d58f80c..1222096e01 100644 --- a/Content.IntegrationTests/Tests/EntityTest.cs +++ b/Content.IntegrationTests/Tests/EntityTest.cs @@ -56,7 +56,7 @@ namespace Content.IntegrationTests.Tests } }); - await server.WaitRunTicks(15); + await server.WaitRunTicks(450); // 15 seconds, enough to trigger most update loops await server.WaitPost(() => { @@ -112,7 +112,7 @@ namespace Content.IntegrationTests.Tests entityMan.SpawnEntity(protoId, map.GridCoords); } }); - await server.WaitRunTicks(15); + await server.WaitRunTicks(450); // 15 seconds, enough to trigger most update loops await server.WaitPost(() => { static IEnumerable<(EntityUid, TComp)> Query(IEntityManager entityMan) @@ -270,7 +270,7 @@ namespace Content.IntegrationTests.Tests await pair.RunTicksSync(3); // We consider only non-audio entities, as some entities will just play sounds when they spawn. - int Count(IEntityManager ent) => ent.EntityCount - ent.Count(); + int Count(IEntityManager ent) => ent.EntityCount - ent.Count(); IEnumerable Entities(IEntityManager entMan) => entMan.GetEntities().Where(entMan.HasComponent); await Assert.MultipleAsync(async () =>