Make tests faster (#8737)
* Test changes * Make finding the test tile a little smarter
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.Body
|
||||
[TestFixture]
|
||||
[TestOf(typeof(SharedBodyComponent))]
|
||||
[TestOf(typeof(BodyComponent))]
|
||||
public sealed class LegTest : ContentIntegrationTest
|
||||
public sealed class LegTest
|
||||
{
|
||||
private const string Prototypes = @"
|
||||
- type: entity
|
||||
@@ -32,8 +32,8 @@ namespace Content.IntegrationTests.Tests.Body
|
||||
[Test]
|
||||
public async Task RemoveLegsFallTest()
|
||||
{
|
||||
var options = new ServerContentIntegrationOption{ExtraPrototypes = Prototypes};
|
||||
var server = StartServer(options);
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoClient = true, ExtraPrototypes = Prototypes});
|
||||
var server = pairTracker.Pair.Server;
|
||||
|
||||
AppearanceComponent appearance = null;
|
||||
|
||||
@@ -64,6 +64,7 @@ namespace Content.IntegrationTests.Tests.Body
|
||||
Assert.That(appearance.TryGetData(RotationVisuals.RotationState, out RotationState state));
|
||||
Assert.That(state, Is.EqualTo(RotationState.Horizontal));
|
||||
});
|
||||
await pairTracker.CleanReturnAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user