From 054d1600a217604606ea425020fa976596f217b4 Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 27 Mar 2019 19:51:56 +0000 Subject: [PATCH] Fix container and free space tests on mono (#704) * Fix disk provider tests * Fix container test on linux --- .../DiskProviderTests/FreeSpaceFixture.cs | 7 +++++++ test.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Mono.Test/DiskProviderTests/FreeSpaceFixture.cs b/src/NzbDrone.Mono.Test/DiskProviderTests/FreeSpaceFixture.cs index 5c2e67b4d..25d3b419f 100644 --- a/src/NzbDrone.Mono.Test/DiskProviderTests/FreeSpaceFixture.cs +++ b/src/NzbDrone.Mono.Test/DiskProviderTests/FreeSpaceFixture.cs @@ -8,6 +8,13 @@ namespace NzbDrone.Mono.Test.DiskProviderTests [Platform("Mono")] public class FreeSpaceFixture : FreeSpaceFixtureBase { + [SetUp] + public void Setup() + { + Mocker.SetConstant(Mocker.Resolve()); + Mocker.SetConstant(Mocker.Resolve()); + } + public FreeSpaceFixture() { MonoOnly(); diff --git a/test.sh b/test.sh index a8fa6cd98..bfb443ff4 100755 --- a/test.sh +++ b/test.sh @@ -38,7 +38,7 @@ if [ "$PLATFORM" = "Windows" ]; then mkdir -p "$ProgramData/Lidarr" WHERE="$WHERE && cat != LINUX" elif [ "$PLATFORM" = "Linux" ] || [ "$PLATFORM" = "Mac" ] ; then - mkdir -p "~/.config/Lidarr" + mkdir -p ~/.config/Lidarr WHERE="$WHERE && cat != WINDOWS" NUNIT_COMMAND="mono --debug --runtime=v4.0 $NUNIT" else