From 67750982bc2a71a066fadf7d86a68bb70913b305 Mon Sep 17 00:00:00 2001
From: junglebus <22320807+junglebus@users.noreply.github.com>
Date: Thu, 6 Feb 2020 13:21:48 +1100
Subject: [PATCH] core: Allow unit tests to run in non-Windows environments
(#7022)
---
src/Jackett.Test/Jackett.Test.csproj | 1 +
src/Jackett.Test/WebUtilityHelpersTests.cs | 7 +------
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/Jackett.Test/Jackett.Test.csproj b/src/Jackett.Test/Jackett.Test.csproj
index 2d70c73a4..3e7990e67 100644
--- a/src/Jackett.Test/Jackett.Test.csproj
+++ b/src/Jackett.Test/Jackett.Test.csproj
@@ -28,6 +28,7 @@
+
diff --git a/src/Jackett.Test/WebUtilityHelpersTests.cs b/src/Jackett.Test/WebUtilityHelpersTests.cs
index b45023be2..f2b37da44 100644
--- a/src/Jackett.Test/WebUtilityHelpersTests.cs
+++ b/src/Jackett.Test/WebUtilityHelpersTests.cs
@@ -15,12 +15,7 @@ namespace Jackett.Test
public WebUtilityHelpersTests()
{
//https://docs.microsoft.com/en-us/dotnet/api/system.text.codepagesencodingprovider?view=netcore-2.0
-#if !NET461
- if (Environment.OSVersion.Platform == PlatformID.Win32NT)
- {
- Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
- }
-#endif
+ Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
_codePagesToTest = new Encoding[]{
Encoding.UTF8,