]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Increase SpawnAndDeleteAllEntitiesOnDifferentMaps test simulation time (#38901)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Wed, 23 Jul 2025 01:21:10 +0000 (03:21 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Jul 2025 01:21:10 +0000 (03:21 +0200)
wait longer

Content.IntegrationTests/Tests/EntityTest.cs

index d78d58f80c5d1025297cd0bb7af8b1155d7967d3..1222096e0193d925df241d7b5f2aa97389053927 100644 (file)
@@ -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<TComp>(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<AudioComponent>();
+            int Count(IEntityManager ent) => ent.EntityCount - ent.Count<AudioComponent>();
             IEnumerable<EntityUid> Entities(IEntityManager entMan) => entMan.GetEntities().Where(entMan.HasComponent<AudioComponent>);
 
             await Assert.MultipleAsync(async () =>