We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba62e9 commit 2ef8744Copy full SHA for 2ef8744
elasticsearch-model/test/test_helper.rb
@@ -49,7 +49,7 @@ def setup
49
tracer = ::Logger.new(STDERR)
50
tracer.formatter = lambda { |s, d, p, m| "#{m.gsub(/^.*$/) { |n| ' ' + n }.ansi(:faint)}\n" }
51
52
- Elasticsearch::Model.client = Elasticsearch::Client.new host: 'localhost:9250',
+ Elasticsearch::Model.client = Elasticsearch::Client.new host: "localhost:#{(ENV['TEST_CLUSTER_PORT'] || 9250)}",
53
tracer: (ENV['QUIET'] ? nil : tracer)
54
end
55
0 commit comments