From a0a09dd1feb13f3766b882fc2382a8ff7c78d244 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 2 Nov 2018 15:29:46 -0400 Subject: [PATCH] Give up on testing the chmod throw --- .../IO/TestPostWriteHandler.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/Tgstation.Server.Host.Tests/IO/TestPostWriteHandler.cs b/tests/Tgstation.Server.Host.Tests/IO/TestPostWriteHandler.cs index bbd12837f8..7a7f1b4715 100644 --- a/tests/Tgstation.Server.Host.Tests/IO/TestPostWriteHandler.cs +++ b/tests/Tgstation.Server.Host.Tests/IO/TestPostWriteHandler.cs @@ -70,16 +70,6 @@ namespace Tgstation.Server.Host.IO.Tests var tmpFile = Path.GetTempFileName(); File.Delete(tmpFile); Assert.ThrowsException(() => postWriteHandler.HandleWrite(tmpFile)); - Directory.CreateDirectory(tmpFile); - try - { - //can't +x a directory ;) (taps head) - Assert.ThrowsException(() => postWriteHandler.HandleWrite(tmpFile)); - } - finally - { - Directory.Delete(tmpFile); - } } } }