From 512aa8f7ae5c2b4decf5e47866aa6469dbcad083 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Mon, 16 Oct 2023 01:20:25 -0400 Subject: [PATCH] Fix test cleaning --- tests/Tgstation.Server.Tests/Live/LiveTestingServer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;