Fix content.integration tests warnings (#17817)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
TemporalOroboros
2023-07-05 21:54:25 -07:00
committed by GitHub
parent 20c1754abd
commit ba91023a85
121 changed files with 3658 additions and 1961 deletions

View File

@@ -1,9 +1,6 @@
using System.Threading.Tasks;
using Content.Server.GameTicking;
using Content.Server.GameTicking;
using Content.Shared.GameTicking;
using NUnit.Framework;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Reflection;
namespace Content.IntegrationTests.Tests
@@ -33,7 +30,7 @@ namespace Content.IntegrationTests.Tests
[Test]
public async Task ResettingEntitySystemResetTest()
{
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoClient = true});
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings { NoClient = true });
var server = pairTracker.Pair.Server;
var entitySystemManager = server.ResolveDependency<IEntitySystemManager>();
@@ -47,11 +44,11 @@ namespace Content.IntegrationTests.Tests
system.HasBeenReset = false;
Assert.False(system.HasBeenReset);
Assert.That(system.HasBeenReset, Is.False);
gameTicker.RestartRound();
Assert.True(system.HasBeenReset);
Assert.That(system.HasBeenReset);
});
await pairTracker.CleanReturnAsync();
}