Skip to content

Commit 4685af1

Browse files
committed
[Tests] Retry on 409, 400
1 parent 7c0c6d7 commit 4685af1

File tree

1 file changed

+6
-0
lines changed
  • elasticsearch-api/spec/yaml-test-runner

1 file changed

+6
-0
lines changed

elasticsearch-api/spec/yaml-test-runner/run.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ def serverless?
6868
request_timeout: 60
6969
}
7070
)
71+
else
72+
options.merge!(
73+
retry_on_status: [409, 400],
74+
retry_on_failure: 5,
75+
delay_on_retry: 1_000
76+
)
7177
end
7278
CLIENT = Elasticsearch::Client.new(options)
7379

0 commit comments

Comments
 (0)