Skip to content

Commit 0f9daf0

Browse files
[Android] Enable skipped networking tests (#89232)
1 parent 7ebf967 commit 0f9daf0

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ public async Task GetAsync_IPBasedUri_Success(IPAddress address)
203203

204204
var options = new GenericLoopbackOptions { Address = address };
205205

206-
if (PlatformDetection.IsAndroid && options.UseSsl && address == IPAddress.IPv6Loopback)
207-
{
208-
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");
209-
}
210-
211206
await LoopbackServerFactory.CreateServerAsync(async (server, url) =>
212207
{
213208
_output.WriteLine(url.ToString());
@@ -286,11 +281,6 @@ public async Task GetAsync_SecureAndNonSecureIPBasedUri_CorrectlyFormatted(IPAdd
286281
return;
287282
}
288283

289-
if (PlatformDetection.IsAndroid && useSsl && address == IPAddress.IPv6Loopback)
290-
{
291-
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");
292-
}
293-
294284
var options = new LoopbackServer.Options { Address = address, UseSsl = useSsl };
295285
bool connectionAccepted = false;
296286
string host = "";

src/libraries/System.Net.Http/tests/FunctionalTests/SocksProxyTest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ public async Task TestLoopbackAsync(string scheme, bool useSsl, bool useAuth, st
3535
return;
3636
}
3737

38-
if (PlatformDetection.IsAndroid && useSsl && host == "::1")
39-
{
40-
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");
41-
}
42-
4338
await LoopbackServerFactory.CreateClientAndServerAsync(
4439
async uri =>
4540
{

0 commit comments

Comments
 (0)