Make tests faster (#8737)

* Test changes

* Make finding the test tile a little smarter
This commit is contained in:
wrexbe
2022-06-19 20:22:28 -07:00
committed by GitHub
parent bd54b8de25
commit 81e3b2da88
80 changed files with 1769 additions and 1788 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Content.Shared.Follower;
@@ -10,7 +11,7 @@ using Robust.Shared.Map;
namespace Content.IntegrationTests.Tests;
[TestFixture, TestOf(typeof(FollowerSystem))]
public sealed class FollowerSystemTest : ContentIntegrationTest
public sealed class FollowerSystemTest
{
/// <summary>
/// This test ensures that deleting a map while an entity follows another doesn't throw any exceptions.
@@ -18,8 +19,8 @@ public sealed class FollowerSystemTest : ContentIntegrationTest
[Test]
public async Task FollowerMapDeleteTest()
{
var server = StartServerDummyTicker();
await server.WaitIdleAsync();
await using var pairTracker = await PoolManager.GetServerClient(new (){NoClient = true});
var server = pairTracker.Pair.Server;
await server.WaitPost(() =>
{
@@ -59,5 +60,6 @@ public sealed class FollowerSystemTest : ContentIntegrationTest
entMan.DeleteEntity(ent);
}
});
await pairTracker.CleanReturnAsync();
}
}