diff --git a/Content.IntegrationTests/Tests/EntityTest.cs b/Content.IntegrationTests/Tests/EntityTest.cs index ad10c5bfc9..b948bddc54 100644 --- a/Content.IntegrationTests/Tests/EntityTest.cs +++ b/Content.IntegrationTests/Tests/EntityTest.cs @@ -88,8 +88,8 @@ namespace Content.IntegrationTests.Tests Logger.LogS(LogLevel.Debug, "EntityTest", $"Testing: {prototype.ID}"); testEntity = entityMan.SpawnEntity(prototype.ID, testLocation); server.RunTicks(2); - Assert.That(entityMan.GetComponent(testEntity).EntityInitialized); - entityMan.DeleteEntity(testEntity); + if(!entityMan.Deleted(testEntity)) + entityMan.DeleteEntity(testEntity); }, "Entity '{0}' threw an exception.", prototype.ID); } diff --git a/Content.IntegrationTests/Tests/GravityGridTest.cs b/Content.IntegrationTests/Tests/GravityGridTest.cs index ced045956c..e9319200fc 100644 --- a/Content.IntegrationTests/Tests/GravityGridTest.cs +++ b/Content.IntegrationTests/Tests/GravityGridTest.cs @@ -33,6 +33,8 @@ namespace Content.IntegrationTests.Tests var options = new ServerIntegrationOptions{ExtraPrototypes = Prototypes}; var server = StartServer(options); + await server.WaitIdleAsync(); + EntityUid generator = default; var entityMan = server.ResolveDependency();