File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
elasticsearch/spec/integration Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ def run_actions_and_retry(actions)
162162 action . execute ( client )
163163 true
164164 rescue Elastic ::Transport ::Transport ::Errors ::RequestTimeout ,
165+ Net ::ReadTimeout , # TODO: Replace this if we change adapters
165166 Elastic ::Transport ::Transport ::Errors ::ServiceUnavailable => e
166167 # The action sometimes gets the cluster in a recovering state, so we
167168 # retry a few times and then raise an exception if it's still
Original file line number Diff line number Diff line change 5858 if defined_path_parts . empty?
5959 { endpoint : spec . endpoint_name }
6060 else
61- { endpoint : spec . endpoint_name , defined_params : defined_path_parts }
61+ { endpoint : spec . endpoint_name , defined_params : defined_path_parts }
6262 end
6363 end
6464
Original file line number Diff line number Diff line change 3636 end
3737
3838 after do
39- client . delete ( index : 'myindex' , id : 1 ) ; rescue
39+ client . delete ( index : 'myindex' , id : 1 ) ; rescue
4040 end
4141
4242 context 'when a request is instrumented' do
4343 it 'sets the span name to the endpoint id' do
44- client . search ( body : { query : { match : { a : 1 } } } )
44+ client . search ( body : { query : { match : { a : 1 } } } )
4545 expect ( span . name ) . to eq 'search'
4646 end
4747
You can’t perform that action at this time.
0 commit comments