Skip to content

Commit 90900f7

Browse files
authored
Fix OSX like cases (#89187)
1 parent cf1482c commit 90900f7

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
@@ -229,7 +229,7 @@ public async Task Connect_DatagramSockets_DontThrowConnectedException_OnSecondAt
229229
await ConnectAsync(s, new IPEndPoint(listenAt, ((IPEndPoint)listener.LocalEndPoint).Port));
230230
Assert.True(s.Connected);
231231
// 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)
232-
await ConnectAsync(s, new IPEndPoint(secondConnection, PlatformDetection.IsOSX ? 1 : 0));
232+
await ConnectAsync(s, new IPEndPoint(secondConnection, PlatformDetection.IsOSXLike ? 1 : 0));
233233
Assert.True(s.Connected);
234234
}
235235
}

0 commit comments

Comments
 (0)