diff --git a/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs b/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs index 51f7e0b8bc..14823a4e32 100644 --- a/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs +++ b/src/Adapter/MSTest.TestAdapter/Execution/TestExecutionManager.cs @@ -86,7 +86,8 @@ private static Task DefaultFactoryAsync(Func taskGetter) } else { - return taskGetter(); + // NOTE: If you replace this with `return taskGetter()`, you will break parallel tests. + return Task.Run(taskGetter); } }