diff --git a/profiler/test/Datadog.Profiler.IntegrationTests/Helpers/AgentEtwProxy.cs b/profiler/test/Datadog.Profiler.IntegrationTests/Helpers/AgentEtwProxy.cs index 32ddf87c4bba..0f09beadc9ec 100644 --- a/profiler/test/Datadog.Profiler.IntegrationTests/Helpers/AgentEtwProxy.cs +++ b/profiler/test/Datadog.Profiler.IntegrationTests/Helpers/AgentEtwProxy.cs @@ -164,7 +164,7 @@ private async Task ProcessCommand(byte[] receivedData) { // NOTE: we want to accept the profiler registration command before starting to send events from another thread // so we don't await this async method - StartClientAsync(); + Task.Run(() => StartClientAsync()); } return _profilerHasRegistered;