File tree 1 file changed +1
-1
lines changed
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public void apply(Project project) {
167
167
nonInputSystemProperties .systemProperty (TESTS_FEATURES_METADATA_PATH , () -> featureMetadataConfig .getAsPath ());
168
168
169
169
// Enable parallel execution for these tests since each test gets its own cluster
170
- task .setMaxParallelForks (task .getProject ().getGradle ().getStartParameter ().getMaxWorkerCount () / 2 );
170
+ task .setMaxParallelForks (Math . max ( 1 , task .getProject ().getGradle ().getStartParameter ().getMaxWorkerCount () / 2 ) );
171
171
nonInputSystemProperties .systemProperty (TESTS_MAX_PARALLEL_FORKS_SYSPROP , () -> String .valueOf (task .getMaxParallelForks ()));
172
172
173
173
// Disable test failure reporting since this stuff is now captured in build scans
You can’t perform that action at this time.
0 commit comments