mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[7.x] Fix number of executions per agent in flaky test job (#5… (#54347)
This commit is contained in:
parent
5fedfc5037
commit
b4523ee672
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWor
|
|||
def numberOfWorkers = Math.min(numberOfExecutions, maxWorkers)
|
||||
|
||||
for(def i = 1; i <= numberOfWorkers; i++) {
|
||||
def workerExecutions = numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0)
|
||||
def workerExecutions = floor(numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0))
|
||||
|
||||
workerMap["agent-${agentNumber}-worker-${i}"] = { workerNumber ->
|
||||
for(def j = 0; j < workerExecutions; j++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue