Fix tests
This commit is contained in:
@@ -88,7 +88,7 @@ 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<MetaDataComponent>(testEntity).EntityInitialized);
|
||||
if(!entityMan.Deleted(testEntity))
|
||||
entityMan.DeleteEntity(testEntity);
|
||||
}, "Entity '{0}' threw an exception.",
|
||||
prototype.ID);
|
||||
|
||||
@@ -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<IEntityManager>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user