Fix tests
This commit is contained in:
@@ -88,8 +88,8 @@ namespace Content.IntegrationTests.Tests
|
|||||||
Logger.LogS(LogLevel.Debug, "EntityTest", $"Testing: {prototype.ID}");
|
Logger.LogS(LogLevel.Debug, "EntityTest", $"Testing: {prototype.ID}");
|
||||||
testEntity = entityMan.SpawnEntity(prototype.ID, testLocation);
|
testEntity = entityMan.SpawnEntity(prototype.ID, testLocation);
|
||||||
server.RunTicks(2);
|
server.RunTicks(2);
|
||||||
Assert.That(entityMan.GetComponent<MetaDataComponent>(testEntity).EntityInitialized);
|
if(!entityMan.Deleted(testEntity))
|
||||||
entityMan.DeleteEntity(testEntity);
|
entityMan.DeleteEntity(testEntity);
|
||||||
}, "Entity '{0}' threw an exception.",
|
}, "Entity '{0}' threw an exception.",
|
||||||
prototype.ID);
|
prototype.ID);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ namespace Content.IntegrationTests.Tests
|
|||||||
var options = new ServerIntegrationOptions{ExtraPrototypes = Prototypes};
|
var options = new ServerIntegrationOptions{ExtraPrototypes = Prototypes};
|
||||||
var server = StartServer(options);
|
var server = StartServer(options);
|
||||||
|
|
||||||
|
await server.WaitIdleAsync();
|
||||||
|
|
||||||
EntityUid generator = default;
|
EntityUid generator = default;
|
||||||
var entityMan = server.ResolveDependency<IEntityManager>();
|
var entityMan = server.ResolveDependency<IEntityManager>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user