Skip to content

Commit

Permalink
Disable Telemetry failure tests for Sync on RedHat7
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Sep 24, 2020
1 parent 2ac2bc7 commit d0d849f
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.DotNet.RemoteExecutor;
using Microsoft.DotNet.XUnitExtensions;
using Xunit;
using Xunit.Abstractions;

Expand Down Expand Up @@ -169,6 +170,12 @@ await listener.RunWithCallbackAsync(events.Enqueue, async () =>
[MemberData(nameof(SocketMethods_WithBools_MemberData))]
public void EventSource_SocketConnectFailure_LogsConnectFailed(string connectMethod, bool useDnsEndPoint)
{
if (connectMethod == "Sync" && PlatformDetection.IsRedHatFamily7)
{
// [ActiveIssue("https://github.com/dotnet/runtime/issues/42686")]
throw new SkipTestException("Disposing a Socket performing a sync operation can hang on RedHat7 systems");
}

RemoteExecutor.Invoke(async (connectMethod, useDnsEndPointString) =>
{
EndPoint endPoint = await GetRemoteEndPointAsync(useDnsEndPointString, port: 12345);
Expand Down Expand Up @@ -210,6 +217,12 @@ await listener.RunWithCallbackAsync(events.Enqueue, async () =>
[MemberData(nameof(SocketMethods_MemberData))]
public void EventSource_SocketAcceptFailure_LogsAcceptFailed(string acceptMethod)
{
if (acceptMethod == "Sync" && PlatformDetection.IsRedHatFamily7)
{
// [ActiveIssue("https://github.com/dotnet/runtime/issues/42686")]
throw new SkipTestException("Disposing a Socket performing a sync operation can hang on RedHat7 systems");
}

RemoteExecutor.Invoke(async acceptMethod =>
{
using var listener = new TestEventListener("System.Net.Sockets", EventLevel.Verbose, 0.1);
Expand Down

0 comments on commit d0d849f

Please sign in to comment.