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 d76eb8a commit b54130bCopy full SHA for b54130b
elasticsearch-api/spec/yaml-test-runner/run.rb
@@ -49,11 +49,9 @@
49
transport_options = {}
50
end
51
52
-CLIENT = if ENV['ES_API_KEY']
53
- Elasticsearch::Client.new(host: host, api_key: ENV['ES_API_KEY'], transport_options: transport_options)
54
- else
55
- Elasticsearch::Client.new(host: host, transport_options: transport_options)
56
- end
+options = { host: host, transport_options: transport_options, compression: true }
+options.merge!({ api_key: ENV['ES_API_KEY'] }) if ENV['ES_API_KEY']
+CLIENT = Elasticsearch::Client.new(options)
57
58
tests_path = File.expand_path('./tmp', __dir__)
59
ruby_version = if defined? JRUBY_VERSION
0 commit comments