Skip to content

Disable PingTest.CancelSendPingAsync on OSX#114783

Merged
rzikm merged 2 commits into
dotnet:mainfrom
rzikm:114782-disable
Apr 22, 2025
Merged

Disable PingTest.CancelSendPingAsync on OSX#114783
rzikm merged 2 commits into
dotnet:mainfrom
rzikm:114782-disable

Conversation

@rzikm

@rzikm rzikm commented Apr 17, 2025

Copy link
Copy Markdown
Member

Contributes to #114782

Copilot AI review requested due to automatic review settings April 17, 2025 14:10
@ghost ghost added the area-System.Net label Apr 17, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs Outdated
[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
Copy Markdown
Member

Choose a reason for hiding this comment

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

ActiveIssue???

Copy link
Copy Markdown
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

rzikm commented Apr 22, 2025

Copy link
Copy Markdown
Member Author

/ba-g test failures are unrelated

@rzikm rzikm merged commit 79a2a66 into dotnet:main Apr 22, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators May 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants