diff --git a/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs b/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs index 51f7e0b8bc..afd8d0afe0 100644 --- a/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs +++ b/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs @@ -86,7 +86,7 @@ private static Task DefaultFactoryAsync(Func taskGetter) } else { - return taskGetter(); + return Task.Run(taskGetter); } }