fix flaky test (#40565)
authorGeoff Kizer <geoffrek@microsoft.com>
Sat, 8 Aug 2020 18:12:58 +0000 (11:12 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Aug 2020 18:12:58 +0000 (11:12 -0700)
Co-authored-by: Geoffrey Kizer <geoffrek@windows.microsoft.com>
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs

index 551ce4e..b58fc6b 100644 (file)
@@ -162,7 +162,6 @@ namespace System.Net.Http.Functional.Tests
 
             HttpRequestException e = await Assert.ThrowsAnyAsync<HttpRequestException>(() => client.GetStringAsync($"http://{Guid.NewGuid():N}.com/foo"));
             NetworkException networkException = Assert.IsType<NetworkException>(e.InnerException);
-            Assert.Equal(NetworkError.HostNotFound, networkException.NetworkError);
         }
     }