File tree 3 files changed +4
-3
lines changed
elasticsearch/spec/integration
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)
162
162
action . execute ( client )
163
163
true
164
164
rescue Elastic ::Transport ::Transport ::Errors ::RequestTimeout ,
165
+ Net ::ReadTimeout , # TODO: Replace this if we change adapters
165
166
Elastic ::Transport ::Transport ::Errors ::ServiceUnavailable => e
166
167
# The action sometimes gets the cluster in a recovering state, so we
167
168
# retry a few times and then raise an exception if it's still
Original file line number Diff line number Diff line change 58
58
if defined_path_parts . empty?
59
59
{ endpoint : spec . endpoint_name }
60
60
else
61
- { endpoint : spec . endpoint_name , defined_params : defined_path_parts }
61
+ { endpoint : spec . endpoint_name , defined_params : defined_path_parts }
62
62
end
63
63
end
64
64
Original file line number Diff line number Diff line change 36
36
end
37
37
38
38
after do
39
- client . delete ( index : 'myindex' , id : 1 ) ; rescue
39
+ client . delete ( index : 'myindex' , id : 1 ) ; rescue
40
40
end
41
41
42
42
context 'when a request is instrumented' do
43
43
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 } } } )
45
45
expect ( span . name ) . to eq 'search'
46
46
end
47
47
You can’t perform that action at this time.
0 commit comments