Skip to content

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

Merged
merged 2 commits into from
Apr 22, 2025
Merged

Conversation

rzikm
Copy link
Member

@rzikm rzikm commented Apr 17, 2025

Contributes to #114782

@Copilot Copilot AI review requested due to automatic review settings April 17, 2025 14:10
Copy link
Contributor

@Copilot Copilot AI left a 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.

@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ActiveIssue???

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the SkipTestException message

@rzikm
Copy link
Member Author

rzikm commented Apr 22, 2025

/ba-g test failures are unrelated

@rzikm rzikm merged commit 79a2a66 into dotnet:main Apr 22, 2025
79 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants