Skip to content

Commit

Permalink
Rename some ES gem classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Nov 17, 2023
1 parent 7e4052f commit c5529e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/lib/admin/system_check/elasticsearch_check.rb
Expand Up @@ -62,7 +62,7 @@ def cluster_health
def running_version
@running_version ||= begin
Chewy.client.info['version']['number']
rescue Faraday::ConnectionFailed, Elasticsearch::Transport::Transport::Error
rescue Faraday::ConnectionFailed, Elastic::Transport::Transport::Error
nil
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/admin/system_check/elasticsearch_check_spec.rb
Expand Up @@ -127,8 +127,8 @@
end

def stub_elasticsearch_error
client = instance_double(Elasticsearch::Transport::Client)
allow(client).to receive(:info).and_raise(Elasticsearch::Transport::Transport::Error)
client = instance_double(Elasticsearch::Client)
allow(client).to receive(:info).and_raise(Elastic::Transport::Transport::Error)
allow(Chewy).to receive(:client).and_return(client)
end
end

0 comments on commit c5529e2

Please sign in to comment.