We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 754827a commit 3526f11Copy full SHA for 3526f11
elasticsearch-api/spec/yaml-test-runner/run.rb
@@ -56,19 +56,13 @@ def serverless?
56
options = {
57
host: host,
58
transport_options: transport_options,
59
+ retry_on_status: [409, 400, 503],
60
+ retry_on_failure: 30,
61
+ delay_on_retry: 10_000,
62
+ request_timeout: 120
63
}
64
options.merge!({ api_key: ENV['ES_API_KEY'] }) if ENV['ES_API_KEY']
65
-if serverless?
- options.merge!(
- {
- retry_on_status: [409, 400, 503],
66
- retry_on_failure: 30,
67
- delay_on_retry: 10_000,
68
- request_timeout: 120
69
- }
70
- )
71
-end
72
CLIENT = Elasticsearch::Client.new(options)
73
74
tests_path = File.expand_path('./tmp', __dir__)
0 commit comments