File tree Expand file tree Collapse file tree 3 files changed +0
-9
lines changed
lib/elasticsearch/transport/transport
spec/elasticsearch/transport Expand file tree Collapse file tree 3 files changed +0
-9
lines changed Original file line number Diff line number Diff line change 1818module Elasticsearch
1919 module Transport
2020 module Transport
21-
2221 # Wraps the response from Elasticsearch.
2322 #
2423 class Response
Original file line number Diff line number Diff line change 109109 end
110110
111111 context 'when `perform_request` is called without a `retry_on_failure` option value' do
112-
113112 before do
114113 expect ( client . transport ) . to receive ( :get_connection ) . exactly ( 3 ) . times . and_call_original
115114 end
122121 end
123122
124123 context 'when `perform_request` is called with a `retry_on_failure` option value' do
125-
126124 before do
127125 expect ( client . transport ) . to receive ( :get_connection ) . exactly ( 6 ) . times . and_call_original
128126 end
136134 end
137135
138136 context 'when the client has `retry_on_failure` set to true' do
139-
140137 let ( :client ) do
141138 Elasticsearch ::Transport ::Client . new ( arguments )
142139 end
149146 end
150147
151148 context 'when `perform_request` is called without a `retry_on_failure` option value' do
152-
153149 before do
154150 expect ( client . transport ) . to receive ( :get_connection ) . exactly ( 4 ) . times . and_call_original
155151 end
162158 end
163159
164160 context 'when `perform_request` is called with a `retry_on_failure` option value' do
165-
166161 before do
167162 expect ( client . transport ) . to receive ( :get_connection ) . exactly ( 6 ) . times . and_call_original
168163 end
176171 end
177172
178173 context 'when the client has `retry_on_failure` set to false' do
179-
180174 let ( :client ) do
181175 Elasticsearch ::Transport ::Client . new ( arguments )
182176 end
189183 end
190184
191185 context 'when `perform_request` is called without a `retry_on_failure` option value' do
192-
193186 before do
194187 expect ( client . transport ) . to receive ( :get_connection ) . once . and_call_original
195188 end
Original file line number Diff line number Diff line change 1818require 'spec_helper'
1919
2020describe Elasticsearch ::Transport ::Client do
21-
2221 let ( :client ) do
2322 described_class . new . tap do |_client |
2423 allow ( _client ) . to receive ( :__build_connections )
You can’t perform that action at this time.
0 commit comments