Commit fe8756711098c2711bab6c19746dc8a44e9a2608

Authored by Andrew Kane
1 parent fd713441

Fixed CI

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
test/test_helper.rb
... ... @@ -8,7 +8,9 @@ require "active_support/notifications"
8 8 ENV["RACK_ENV"] = "test"
9 9  
10 10 # for reloadable synonyms
11   -ENV["ES_PATH"] ||= File.join(ENV["HOME"], Searchkick.opensearch? ? "opensearch" : "elasticsearch")
  11 +if ENV["CI"]
  12 + ENV["ES_PATH"] ||= File.join(ENV["HOME"], Searchkick.opensearch? ? "opensearch" : "elasticsearch", Searchkick.server_version)
  13 +end
12 14  
13 15 $logger = ActiveSupport::Logger.new(ENV["VERBOSE"] ? STDOUT : nil)
14 16  
... ...