Skip to content

Commit

Permalink
Should not try to use a semaphore when we've been asked for unlimited…
Browse files Browse the repository at this point in the history
… threads
  • Loading branch information
bradwilson committed Apr 20, 2024
1 parent 3722e54 commit d73cdef
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ protected override async Task<RunSummary> RunTestCollectionsAsync(IMessageBus me

private void SetupParallelSemaphore(int maxParallelThreads)
{
if (maxParallelThreads < 1)
return;

parallelSemaphore = new SemaphoreSlim(maxParallelThreads);

#if NETSTANDARD
Expand Down

0 comments on commit d73cdef

Please sign in to comment.