Skip to content

Commit

Permalink
Fix test parallelization
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Jan 14, 2025
1 parent c45c457 commit bf06a3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ private static Task DefaultFactoryAsync(Func<Task> taskGetter)
}
else
{
return taskGetter();
// NOTE: If you replace this with `return taskGetter()`, you will break parallel tests.
return Task.Run(taskGetter);
}
}

Expand Down

0 comments on commit bf06a3c

Please sign in to comment.