diff --git a/tests/Tgstation.Server.Tests/Live/LiveTestingServer.cs b/tests/Tgstation.Server.Tests/Live/LiveTestingServer.cs index 0d5d0761da..aff760753e 100644 --- a/tests/Tgstation.Server.Tests/Live/LiveTestingServer.cs +++ b/tests/Tgstation.Server.Tests/Live/LiveTestingServer.cs @@ -75,8 +75,11 @@ namespace Tgstation.Server.Tests.Live public LiveTestingServer(SwarmConfiguration swarmConfiguration, bool enableOAuth, ushort port = 15010) { - if(needCleanup) + if (needCleanup) + { + needCleanup = false; Cleanup(BaseDirectory).GetAwaiter().GetResult(); + } Assert.IsTrue(port >= 10000); // for testing bridge request limit Directory = BaseDirectory;