Skip to content

Commit

Permalink
[6.8] Experimenting with delay in test startup (#51459) (#52014)
Browse files Browse the repository at this point in the history
* Experimenting with delay in test startup

* Move firefox tests sooner becuase they take a long time to run

* Move functional test parallel process delay to a spot that should work better for flaky test runner
  • Loading branch information
brianseeders authored Dec 2, 2019
1 parent c2d5390 commit 161a36c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vars/kibanaPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ def withWorkers(name, preWorkerClosure = {}, workerClosures = [:]) {
nextWorker++

return {
// This delay helps smooth out CPU load caused by ES/Kibana instances starting up at the same time
def delay = (workerNumber-1)*20
sleep(delay)

workerClosure(workerNumber)
}
}
Expand Down

0 comments on commit 161a36c

Please sign in to comment.