Skip to content

Commit

Permalink
Asking for default threads should set 0, not null
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Apr 20, 2024
1 parent d73cdef commit 4c82dea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static TestAssemblyConfiguration LoadConfiguration(Stream configStream, string c
else if (propertyValue is JsonString stringValue)
{
if (string.Equals("default", stringValue, StringComparison.OrdinalIgnoreCase))
result.MaxParallelThreads = null;
result.MaxParallelThreads = 0;
else if (string.Equals("unlimited", stringValue, StringComparison.OrdinalIgnoreCase))
result.MaxParallelThreads = -1;
else
Expand Down

0 comments on commit 4c82dea

Please sign in to comment.