Skip to content

Commit fd82ac4

Browse files
committed
Faraday::Error::ConnectionFailed is deprecated
1 parent 2075c64 commit fd82ac4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elasticsearch-api/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace :test do
7474
es_version_info = client.info['version']
7575
build_hash = es_version_info['build_hash']
7676
cluster_running = true
77-
rescue Faraday::Error::ConnectionFailed
77+
rescue Faraday::ConnectionFailed
7878
STDERR.puts "[!] Test cluster not running?"
7979
cluster_running = false
8080
end

elasticsearch-transport/spec/elasticsearch/transport/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@
13881388
expect(client.perform_request('GET', '_nodes/_local'))
13891389
expect {
13901390
client.perform_request('GET', '_nodes/_local')
1391-
}.to raise_exception(Faraday::Error::ConnectionFailed)
1391+
}.to raise_exception(Faraday::ConnectionFailed)
13921392
end
13931393
end
13941394

0 commit comments

Comments
 (0)