Skip to content

Commit 1b61065

Browse files
authored
Fix Connect_DualMode_DnsConnect_RetrievedEndPoints_Success on Linux (#54681)
1 parent 39e8a6e commit 1b61065

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Net.Sockets/tests/FunctionalTests

1 file changed

+1
-1
lines changed

src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public async Task Connect_DualMode_DnsConnect_RetrievedEndPoints_Success()
129129

130130
var localEndPoint = client.LocalEndPoint as IPEndPoint;
131131
Assert.NotNull(localEndPoint);
132-
Assert.Equal(IPAddress.Loopback.MapToIPv6(), localEndPoint.Address);
132+
Assert.True(localEndPoint.Address.Equals(IPAddress.IPv6Loopback) || localEndPoint.Address.Equals(IPAddress.Loopback.MapToIPv6()));
133133

134134
var remoteEndPoint = client.RemoteEndPoint as IPEndPoint;
135135
Assert.NotNull(remoteEndPoint);

0 commit comments

Comments
 (0)