diff --git a/tests/Tgstation.Server.Host.Tests/Components/Byond/TestPosixByondInstaller.cs b/tests/Tgstation.Server.Host.Tests/Components/Byond/TestPosixByondInstaller.cs index b6337b1ebd..c9dbe554b8 100644 --- a/tests/Tgstation.Server.Host.Tests/Components/Byond/TestPosixByondInstaller.cs +++ b/tests/Tgstation.Server.Host.Tests/Components/Byond/TestPosixByondInstaller.cs @@ -30,27 +30,7 @@ namespace Tgstation.Server.Host.Components.Byond.Tests var mockIOManager = new Mock(); var mockLogger = new Mock>(); var installer = new PosixByondInstaller(mockPostWriteHandler.Object, mockIOManager.Object, mockLogger.Object); - - const string ByondCachePath = "~/.byond/cache"; - - mockIOManager.Setup(x => x.DeleteDirectory(ByondCachePath, default)).Returns(Task.CompletedTask).Verifiable(); - await installer.CleanCache(default); - - mockPostWriteHandler.Verify(); - - - mockIOManager.Setup(x => x.DeleteDirectory(ByondCachePath, default)).Throws(new OperationCanceledException()).Verifiable(); - - await Assert.ThrowsExceptionAsync(() => installer.CleanCache(default)).ConfigureAwait(false); - - mockIOManager.Verify(); - - mockIOManager.Setup(x => x.DeleteDirectory(ByondCachePath, default)).Throws(new Exception()).Verifiable(); - - await installer.CleanCache(default).ConfigureAwait(false); - - mockIOManager.Verify(); }