diff --git a/src/Tests/Microsoft.Diagnostics.Monitoring.WebApi.UnitTests/Operation/EgressOperationServiceTests.cs b/src/Tests/Microsoft.Diagnostics.Monitoring.WebApi.UnitTests/Operation/EgressOperationServiceTests.cs index c071ace6c8b..11aa7c60b15 100644 --- a/src/Tests/Microsoft.Diagnostics.Monitoring.WebApi.UnitTests/Operation/EgressOperationServiceTests.cs +++ b/src/Tests/Microsoft.Diagnostics.Monitoring.WebApi.UnitTests/Operation/EgressOperationServiceTests.cs @@ -138,7 +138,7 @@ public async Task ExecuteAsync_Failure_TransitionsState_ToFaulted(bool isStarted throw testException; }); - TaskCompletionSource> egressResultCompletionSource = new(); + TaskCompletionSource> egressResultCompletionSource = new(TaskCreationOptions.RunContinuationsAsynchronously); _ = mockStore .Setup(m => m.CompleteOperation(request.OperationId, It.IsAny>()))