-
Notifications
You must be signed in to change notification settings - Fork 5k
Disable PingTest.CancelSendPingAsync on OSX #114783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR disables the CancelSendPingAsync test on OSX to work around an active issue (#114782) while also updating the formatting of a ProcessStartInfo initializer.
- Added a conditional check in CancelSendPingAsync to throw a SkipTestException on OSX when useIPAddress is true and useCancellationToken is false.
- Reformatted the ProcessStartInfo initializer for consistency.
src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs
Outdated
Show resolved
Hide resolved
@@ -694,6 +694,11 @@ public async Task SendPingAsyncWithAlreadyCanceledToken(bool useIPAddress) | |||
[OuterLoop] // Depends on external host and assumption that successful ping takes long enough for cancellation to go through first | |||
public async Task CancelSendPingAsync(bool useIPAddress, bool useCancellationToken) | |||
{ | |||
if (PlatformDetection.IsOSX && useIPAddress && !useCancellationToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ActiveIssue???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the SkipTestException message
/ba-g test failures are unrelated |
Contributes to #114782