Skip to content

Commit

Permalink
DefaultParallelLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhurst committed Nov 18, 2024
1 parent 40aa334 commit edac3e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 45 deletions.
9 changes: 0 additions & 9 deletions TUnit.Core/Extensions/EnumerableExtensions.cs

This file was deleted.

8 changes: 8 additions & 0 deletions TUnit.Core/Helpers/DefaultParallelLimit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using TUnit.Core.Interfaces;

namespace TUnit.Core.Helpers;

public class DefaultParallelLimit : IParallelLimit
{
public int Limit { get; } = Environment.ProcessorCount;
}
2 changes: 1 addition & 1 deletion TUnit.Core/NotInParallelConstraint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ namespace TUnit.Core;

public record NotInParallelConstraint(IReadOnlyList<string> NotInParallelConstraintKeys) : IParallelConstraint
{
public int Order { get; internal set; } = int.MaxValue / 2;
public int Order { get; set; } = int.MaxValue / 2;
}
35 changes: 0 additions & 35 deletions TUnit.Core/UniqueElementsEnumerable.cs

This file was deleted.

0 comments on commit edac3e4

Please sign in to comment.