Get test map (#8987)

This commit is contained in:
wrexbe
2022-06-21 07:44:19 -07:00
committed by GitHub
parent 9c5e6e6d7e
commit bee053a38c
18 changed files with 106 additions and 87 deletions

View File

@@ -63,14 +63,13 @@ namespace Content.IntegrationTests.Tests.Utility
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoClient = true, ExtraPrototypes = Prototypes});
var server = pairTracker.Pair.Server;
var mapManager = server.ResolveDependency<IMapManager>();
var testMap = await PoolManager.CreateTestMap(pairTracker);
var mapCoordinates = testMap.MapCoords;
var sEntities = server.ResolveDependency<IEntityManager>();
await server.WaitAssertion(() =>
{
var mapId = PoolManager.GetMainGrid(mapManager).ParentMapId;
var mapCoordinates = new MapCoordinates(0, 0, mapId);
var validComponent = sEntities.SpawnEntity("ValidComponentDummy", mapCoordinates);
var validTag = sEntities.SpawnEntity("ValidTagDummy", mapCoordinates);