[Android] Enable skipped networking tests (#89232)
authorŠimon Rozsíval <simon@rozsival.com>
Wed, 26 Jul 2023 09:12:08 +0000 (11:12 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 09:12:08 +0000 (11:12 +0200)
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocksProxyTest.cs

index c042e99..369a6d1 100644 (file)
@@ -203,11 +203,6 @@ namespace System.Net.Http.Functional.Tests
 
             var options = new GenericLoopbackOptions { Address = address };
 
-            if (PlatformDetection.IsAndroid && options.UseSsl && address == IPAddress.IPv6Loopback)
-            {
-                throw new SkipTestException("TargetHost cannot be set to an IPv6 address on Android because the string doesn't conform to the STD 3 ASCII rules");
-            }
-
             await LoopbackServerFactory.CreateServerAsync(async (server, url) =>
             {
                 _output.WriteLine(url.ToString());
@@ -286,11 +281,6 @@ namespace System.Net.Http.Functional.Tests
                 return;
             }
 
-            if (PlatformDetection.IsAndroid && useSsl && address == IPAddress.IPv6Loopback)
-            {
-                throw new SkipTestException("TargetHost cannot be set to an IPv6 address on Android because the string doesn't conform to the STD 3 ASCII rules");
-            }
-
             var options = new LoopbackServer.Options { Address = address, UseSsl = useSsl };
             bool connectionAccepted = false;
             string host = "";
index a70f1c4..5916c82 100644 (file)
@@ -35,11 +35,6 @@ namespace System.Net.Http.Functional.Tests
                 return;
             }
 
-            if (PlatformDetection.IsAndroid && useSsl && host == "::1")
-            {
-                throw new SkipTestException("TargetHost cannot be set to an IPv6 address on Android because the string doesn't conform to the STD 3 ASCII rules");
-            }
-
             await LoopbackServerFactory.CreateClientAndServerAsync(
                 async uri =>
                 {