Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using System.Threading.Tasks;
using Microsoft.DotNet.RemoteExecutor;
using Microsoft.DotNet.XUnitExtensions;
using TestUtilities;
using Xunit;
using Xunit.Abstractions;

Expand Down Expand Up @@ -687,6 +688,11 @@ await LoopbackServerFactory.CreateClientAndServerAsync(async uri =>
[ConditionalFact(typeof(SocketsHttpHandler), nameof(SocketsHttpHandler.IsSupported))]
public async Task AllSocketsHttpHandlerCounters_Success_Recorded()
{
TestEventListener? listener = null;
if (UseVersion == HttpVersion20.Value)
{
listener = new TestEventListener(_output, TestEventListener.NetworkingEvents);
}
TaskCompletionSource clientWaitingTcs = new(TaskCreationOptions.RunContinuationsAsynchronously);
TaskCompletionSource clientDisposedTcs = new(TaskCreationOptions.RunContinuationsAsynchronously);

Expand Down Expand Up @@ -758,6 +764,7 @@ await server.AcceptConnectionAsync(async connection =>
await clientDisposedTcs.Task.WaitAsync(TestHelper.PassingTestTimeout);
});
});
listener?.Dispose();
}

[Fact]
Expand Down