Code Cleanup: Integration Tests (#29584)
* Cleanup PuddleTest * Cleanup GravityGridTest * Cleanup PowerTest * Cleanup SaveLoadMapTest * Cleanup Body tests * Cleanup ContainerOcclusionTest * Cleanup AirlockTest * Cleanup DamageableTest * Cleanup EntityTest * Cleanup FluidSpillTest * Cleanup FollowerSystemTest * Cleanup HandCuffTest * Cleanup InteractionSystemTests * Cleanup InRangeUnobstructed * Cleanup SimplePredictReconcileTest * Cleanup PostMapInitTest * Cleanup SalvageTest * Cleanup SaveLoadSaveTest * Cleanup ShuttleTest * Cleanup MaterialArbitrageTest * Cleanup PrototypeSaveTest * Fix ShuttleTest * Bunch of small ones * Move JobTests to Station directory * More small fixes * Cleanup InteractionTest.Helpers Had to change a method signature, so some callers were modified too. * Missed one
This commit is contained in:
@@ -36,16 +36,18 @@ public abstract class ToolshedTest : IInvocationContext
|
||||
await TearDown();
|
||||
}
|
||||
|
||||
protected virtual async Task TearDown()
|
||||
protected virtual Task TearDown()
|
||||
{
|
||||
Assert.That(_expectedErrors, Is.Empty);
|
||||
ClearErrors();
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public virtual async Task Setup()
|
||||
{
|
||||
Pair = await PoolManager.GetServerClient(new PoolSettings {Connected = Connected});
|
||||
Pair = await PoolManager.GetServerClient(new PoolSettings { Connected = Connected });
|
||||
Server = Pair.Server;
|
||||
|
||||
if (Connected)
|
||||
@@ -142,7 +144,7 @@ public abstract class ToolshedTest : IInvocationContext
|
||||
);
|
||||
}
|
||||
|
||||
done:
|
||||
done:
|
||||
_errors.Add(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user