We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e8a6e commit 1b61065Copy full SHA for 1b61065
src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs
@@ -129,7 +129,7 @@ public async Task Connect_DualMode_DnsConnect_RetrievedEndPoints_Success()
129
130
var localEndPoint = client.LocalEndPoint as IPEndPoint;
131
Assert.NotNull(localEndPoint);
132
- Assert.Equal(IPAddress.Loopback.MapToIPv6(), localEndPoint.Address);
+ Assert.True(localEndPoint.Address.Equals(IPAddress.IPv6Loopback) || localEndPoint.Address.Equals(IPAddress.Loopback.MapToIPv6()));
133
134
var remoteEndPoint = client.RemoteEndPoint as IPEndPoint;
135
Assert.NotNull(remoteEndPoint);
0 commit comments