diff --git a/tests/Tgstation.Server.Tests/TestingServer.cs b/tests/Tgstation.Server.Tests/TestingServer.cs index afe9b340d7..aad3a9e24f 100644 --- a/tests/Tgstation.Server.Tests/TestingServer.cs +++ b/tests/Tgstation.Server.Tests/TestingServer.cs @@ -36,17 +36,16 @@ namespace Tgstation.Server.Tests if (String.IsNullOrWhiteSpace(Directory)) { Directory = Path.Combine(Path.GetTempPath(), "TGS4_INTEGRATION_TEST"); - if(System.IO.Directory.Exists(Directory)) + if (System.IO.Directory.Exists(Directory)) try { System.IO.Directory.Delete(Directory, true); } - catch - { - Directory = Path.Combine(Directory, Guid.NewGuid().ToString()); - } + catch { } + } + Directory = Path.Combine(Directory, Guid.NewGuid().ToString()); System.IO.Directory.CreateDirectory(Directory); const string UrlString = "http://localhost:5010"; Url = new Uri(UrlString);