mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
[tests] StandaloneRestIntegTestTask should set a minimum maxParallelForks of 1 (#126346)
This commit is contained in:
parent
00c3146dcf
commit
a13a46a2da
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ public class RestTestBasePlugin implements Plugin<Project> {
|
|||
nonInputSystemProperties.systemProperty(TESTS_FEATURES_METADATA_PATH, () -> featureMetadataConfig.getAsPath());
|
||||
|
||||
// Enable parallel execution for these tests since each test gets its own cluster
|
||||
task.setMaxParallelForks(task.getProject().getGradle().getStartParameter().getMaxWorkerCount() / 2);
|
||||
task.setMaxParallelForks(Math.max(1, task.getProject().getGradle().getStartParameter().getMaxWorkerCount() / 2));
|
||||
nonInputSystemProperties.systemProperty(TESTS_MAX_PARALLEL_FORKS_SYSPROP, () -> String.valueOf(task.getMaxParallelForks()));
|
||||
|
||||
// Disable test failure reporting since this stuff is now captured in build scans
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue