Fix airlocks on some maps (#8363)

* Fix airlocks on some maps

* Make MapsLoadableTest say the map that failed
This commit is contained in:
wrexbe
2022-05-22 20:31:39 -07:00
committed by GitHub
parent b491dc543d
commit 4c84dba2f2
5 changed files with 213 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using System.IO;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NUnit.Framework;
@@ -87,8 +88,22 @@ namespace Content.IntegrationTests.Tests
server.Post(() =>
{
var mapId = mapManager.CreateMap();
mapLoader.LoadMap(mapId, rootedPath.ToString());
mapManager.DeleteMap(mapId);
try
{
mapLoader.LoadMap(mapId, rootedPath.ToString());
}
catch (Exception ex)
{
throw new Exception($"Failed to load map {rootedPath}", ex);
}
try
{
mapManager.DeleteMap(mapId);
}
catch (Exception ex)
{
throw new Exception($"Failed to delete map {rootedPath}", ex);
}
});
await server.WaitIdleAsync();
}