Cleanup disabled test conditions (#56381)
authorKarel Zikmund <karelz@microsoft.com>
Wed, 28 Jul 2021 11:44:51 +0000 (13:44 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 11:44:51 +0000 (07:44 -0400)
src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs

index 467b8e9..ae5cb3b 100644 (file)
@@ -26,7 +26,7 @@ namespace System.Net.NameResolution.Tests
             // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")]
             PlatformDetection.IsNotArmNorArm64Process &&
             // [ActiveIssue("https://github.com/dotnet/runtime/issues/1488", TestPlatforms.OSX)]
-            PlatformDetection.IsNotOSX &&
+            !PlatformDetection.IsOSX &&
             // [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
             !PlatformDetection.IsiOS && !PlatformDetection.IstvOS && !PlatformDetection.IsMacCatalyst &&
             // [ActiveIssue("https://github.com/dotnet/runtime/issues/55271")]
@@ -39,12 +39,6 @@ namespace System.Net.NameResolution.Tests
         [InlineData(TestSettings.LocalHost)]
         public async Task Dns_GetHostEntry_HostString_Ok(string hostName)
         {
-            if (PlatformDetection.IsSLES)
-            {
-                // See https://github.com/dotnet/runtime/issues/55271
-                throw new SkipTestException("SLES Tests environment is not configured for this test to work.");
-            }
-
             try
             {
                 await TestGetHostEntryAsync(() => Task.FromResult(Dns.GetHostEntry(hostName)));
@@ -93,12 +87,6 @@ namespace System.Net.NameResolution.Tests
         [InlineData(TestSettings.LocalHost)]
         public async Task Dns_GetHostEntryAsync_HostString_Ok(string hostName)    
         {
-            if (PlatformDetection.IsSLES)
-            {
-                // See https://github.com/dotnet/runtime/issues/55271
-                throw new SkipTestException("SLES Tests environment is not configured for this test to work.");
-            }
-
             await TestGetHostEntryAsync(() => Dns.GetHostEntryAsync(hostName));
         }