Test cluster throttle should never be less than 1 (#51713)
This commit is contained in:
parent
6b18cab826
commit
6c879ac63c
|
@ -80,7 +80,7 @@ public class TestClustersPlugin implements Plugin<Project> {
|
|||
.registerIfAbsent(
|
||||
THROTTLE_SERVICE_NAME,
|
||||
TestClustersThrottle.class,
|
||||
spec -> spec.getMaxParallelUsages().set(Math.min(1, project.getGradle().getStartParameter().getMaxWorkerCount() / 2))
|
||||
spec -> spec.getMaxParallelUsages().set(Math.max(1, project.getGradle().getStartParameter().getMaxWorkerCount() / 2))
|
||||
);
|
||||
|
||||
// register cluster hooks
|
||||
|
|
Loading…
Reference in New Issue