Skip to content

Commit 79a2a66

Browse files
authored
Disable PingTest.CancelSendPingAsync on OSX (#114783)
* Disable System.Net.NetworkInformation.Tests.PingTest.CancelSendPingAsync on OSX * Update src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs
1 parent a697493 commit 79a2a66

File tree

1 file changed

+7
-1
lines changed
  • src/libraries/System.Net.Ping/tests/FunctionalTests

1 file changed

+7
-1
lines changed

src/libraries/System.Net.Ping/tests/FunctionalTests/PingTest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,11 @@ public async Task SendPingAsyncWithAlreadyCanceledToken(bool useIPAddress)
694694
[OuterLoop] // Depends on external host and assumption that successful ping takes long enough for cancellation to go through first
695695
public async Task CancelSendPingAsync(bool useIPAddress, bool useCancellationToken)
696696
{
697+
if (PlatformDetection.IsOSX && useIPAddress && !useCancellationToken)
698+
{
699+
throw new SkipTestException("[ActiveIssue(https://github.com/dotnet/runtime/issues/114782)]");
700+
}
701+
697702
using CancellationTokenSource source = new();
698703

699704
using Ping ping = new();
@@ -870,7 +875,8 @@ public async Task SendPingAsync_LocaleEnvVarsMustBeIgnored(AddressFamily address
870875
{
871876
IPAddress localIpAddress = TestSettings.GetLocalIPAddress(addressFamily);
872877

873-
var remoteInvokeStartInfo = new ProcessStartInfo {
878+
var remoteInvokeStartInfo = new ProcessStartInfo
879+
{
874880
EnvironmentVariables =
875881
{
876882
["LANG"] = envVar_LANG,

0 commit comments

Comments
 (0)