Skip to content

Commit

Permalink
Fix OSX like cases (#89187)
Browse files Browse the repository at this point in the history
  • Loading branch information
liveans authored Jul 19, 2023
1 parent cf1482c commit 90900f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public async Task Connect_DatagramSockets_DontThrowConnectedException_OnSecondAt
await ConnectAsync(s, new IPEndPoint(listenAt, ((IPEndPoint)listener.LocalEndPoint).Port));
Assert.True(s.Connected);
// According to the OSX man page, it's enough connecting to an invalid address to dissolve the connection. (0 port connection returns error on OSX)
await ConnectAsync(s, new IPEndPoint(secondConnection, PlatformDetection.IsOSX ? 1 : 0));
await ConnectAsync(s, new IPEndPoint(secondConnection, PlatformDetection.IsOSXLike ? 1 : 0));
Assert.True(s.Connected);
}
}
Expand Down

0 comments on commit 90900f7

Please sign in to comment.