lib/soaspec/exchange.rb in soaspec-0.0.76 vs lib/soaspec/exchange.rb in soaspec-0.0.77
- old
+ new
@@ -109,9 +109,10 @@
request_params = @override_parameters
(1..retry_count).each do |count|
response = exchange_handler.make_request(request_params)
return response unless retry_for_success?
return response if (200..299).cover? @exchange_handler.status_code_for(response)
+ sleep 0.5
break response if count == retry_count
end
end
# Stores a value in the api handler that can be accessed by the provided name
\ No newline at end of file