Skip to content

Commit 189b896

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

File tree

1 file changed

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

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,16 @@
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+
arguments: {
56+
retry_on_status: [409],
57+
retry_on_failure: 10,
58+
delay_on_retry: 60_000,
59+
request_timeout: 120
60+
}
61+
}
5362
options.merge!({ api_key: ENV['ES_API_KEY'] }) if ENV['ES_API_KEY']
5463
CLIENT = Elasticsearch::Client.new(options)
5564

0 commit comments

Comments
 (0)