From b76580d4f0026bf56b6101b02ff5a6509cda9eea Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 10 Oct 2018 18:02:35 -0400 Subject: [PATCH] Clean up tests --- tests/Tgstation.Server.Tests/IntegrationTest.cs | 2 +- tests/Tgstation.Server.Tests/TestingServer.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Tgstation.Server.Tests/IntegrationTest.cs b/tests/Tgstation.Server.Tests/IntegrationTest.cs index bc8eb4ccc6..eab8583aa3 100644 --- a/tests/Tgstation.Server.Tests/IntegrationTest.cs +++ b/tests/Tgstation.Server.Tests/IntegrationTest.cs @@ -20,7 +20,7 @@ namespace Tgstation.Server.Tests [TestMethod] public async Task FullMonty() { - using (var server = new TestingServer()) + var server = new TestingServer(); using (var serverCts = new CancellationTokenSource()) { var cancellationToken = serverCts.Token; diff --git a/tests/Tgstation.Server.Tests/TestingServer.cs b/tests/Tgstation.Server.Tests/TestingServer.cs index c57637f7b3..273bd6c72a 100644 --- a/tests/Tgstation.Server.Tests/TestingServer.cs +++ b/tests/Tgstation.Server.Tests/TestingServer.cs @@ -55,7 +55,6 @@ namespace Tgstation.Server.Tests public void Dispose() { - realServer.Dispose(); System.IO.Directory.Delete(Directory, true); }