diff --git a/src/NzbDrone.Core.Test/Files/TestArchive.tar.gz b/src/NzbDrone.Core.Test/Files/TestArchive.tar.gz new file mode 100644 index 000000000..b37bf2971 Binary files /dev/null and b/src/NzbDrone.Core.Test/Files/TestArchive.tar.gz differ diff --git a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index d2b866928..b21c4cfd2 100644 --- a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -362,6 +362,9 @@ Always + + Always + Always diff --git a/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs b/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs index 9cf514eb1..a9f3e2f0d 100644 --- a/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs +++ b/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs @@ -2,6 +2,7 @@ using NUnit.Framework; using NzbDrone.Common; using System.IO; +using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Test.Common; namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests @@ -13,7 +14,9 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests public void Should_extract_to_correct_folder() { var destination = Path.Combine(TempFolder, "destination"); - Subject.Extract(GetTestFilePath("TestArchive.zip"), destination); + var testArchive = OsInfo.IsWindows ? "TestArchive.zip" : "TestArchive.tar.gz"; + + Subject.Extract(GetTestFilePath(testArchive), destination); var destinationFolder = new DirectoryInfo(destination);