From d831540188ea96f99c815795f13aa44a73266fd7 Mon Sep 17 00:00:00 2001 From: Youssef1313 Date: Tue, 14 Jan 2025 06:44:20 +0100 Subject: [PATCH] Fix test parallelization --- .../MSTest.TestAdapter/Execution/TestExecutionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }