From 3127ab3bb87c511b206a5d721b880b139525eeca Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sun, 7 May 2023 10:26:57 -0500 Subject: [PATCH] refactor: Delete auto-created temp dir in MockFileSystem Needed because of this issue: https://github.com/TestableIO/System.IO.Abstractions/issues/983 --- .../TrashLibIntegrationFixture.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs b/src/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs index 8135cc91..2feef3e2 100644 --- a/src/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs +++ b/src/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs @@ -21,6 +21,10 @@ public abstract class TrashLibIntegrationFixture : IDisposable { protected TrashLibIntegrationFixture() { + // todo: Remove later. Needed because of this issue: + // https://github.com/TestableIO/System.IO.Abstractions/issues/983 + Fs.Directory.Delete("temp", true); + Paths = new AppPaths(Fs.CurrentDirectory().SubDirectory("test").SubDirectory("recyclarr")); Logger = CreateLogger();