Fix some UserData file system usage inconsistencies with map save tests.

This commit is contained in:
Pieter-Jan Briers
2020-08-20 18:47:16 +02:00
parent 496b456120
commit 4cb0040045
2 changed files with 13 additions and 6 deletions

View File

@@ -3,8 +3,11 @@ using NUnit.Framework;
using Robust.Server.Interfaces.Maps;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Interfaces.Map;
using Robust.Shared.Interfaces.Resources;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Maths;
using Robust.Shared.Utility;
namespace Content.IntegrationTests.Tests
{
@@ -14,7 +17,7 @@ namespace Content.IntegrationTests.Tests
[Test]
public async Task SaveLoadMultiGridMap()
{
const string mapPath = @"Maps/Test/TestMap.yml";
const string mapPath = @"/Maps/Test/TestMap.yml";
var server = StartServer();
await server.WaitIdleAsync();
@@ -24,6 +27,10 @@ namespace Content.IntegrationTests.Tests
server.Post(() =>
{
var dir = new ResourcePath(mapPath).Directory;
IoCManager.Resolve<IResourceManager>()
.UserData.CreateDir(dir);
var mapId = mapManager.CreateMap(new MapId(5));
{