Skip to content

Commit 84b3cf9

Browse files
committed
[CI] Adds client options for running YAML tests
1 parent 6f95b84 commit 84b3cf9

File tree

1 file changed

+8
-1
lines changed
  • elasticsearch-api/spec/yaml-test-runner

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@
4949
transport_options = {}
5050
end
5151

52-
options = { host: host, transport_options: transport_options, compression: true }
52+
options = {
53+
host: host,
54+
transport_options: transport_options,
55+
retry_on_status: [409],
56+
retry_on_failure: 10,
57+
delay_on_retry: 60_000,
58+
request_timeout: 120
59+
}
5360
options.merge!({ api_key: ENV['ES_API_KEY'] }) if ENV['ES_API_KEY']
5461
CLIENT = Elasticsearch::Client.new(options)
5562

0 commit comments

Comments
 (0)