From 87da82dd908b94026980435e9326a97b75264e3f Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 13 Sep 2013 23:09:36 -0700 Subject: [PATCH] fixed broken tests. --- NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs | 2 +- NzbDrone.Test.Common/TestBase.cs | 2 +- NzbDrone.sln.DotSettings | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs b/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs index 64be8603f..69f433dfa 100644 --- a/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs +++ b/NzbDrone.Common.Test/DiskProviderTests/DiskProviderFixture.cs @@ -159,7 +159,7 @@ namespace NzbDrone.Common.Test.DiskProviderTests TestLogger.Info("Path is: {0}", testFile); - Subject.WriteAllText(testFile, ""); + Subject.WriteAllText(testFile, "Test"); Subject.GetLastFolderWrite(SandboxFolder).Should().BeOnOrAfter(DateTime.UtcNow.AddMinutes(-1)); Subject.GetLastFolderWrite(SandboxFolder).Should().BeBefore(DateTime.UtcNow); diff --git a/NzbDrone.Test.Common/TestBase.cs b/NzbDrone.Test.Common/TestBase.cs index 4cbaad94e..1b1ff4cee 100644 --- a/NzbDrone.Test.Common/TestBase.cs +++ b/NzbDrone.Test.Common/TestBase.cs @@ -159,7 +159,7 @@ namespace NzbDrone.Test.Common protected string GetTestFilePath() { - return GetTestFilePath(Path.GetTempFileName()); + return GetTestFilePath(Path.GetRandomFileName()); } protected string SandboxFolder diff --git a/NzbDrone.sln.DotSettings b/NzbDrone.sln.DotSettings index 03435b8b6..82bd482c5 100644 --- a/NzbDrone.sln.DotSettings +++ b/NzbDrone.sln.DotSettings @@ -48,6 +48,8 @@ True True True + 4 + True Backbone model 5 True