Skip to content

Commit

Permalink
Add retry_interval and logging to help with successful_deploy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlewis committed Sep 1, 2021
1 parent 79871cc commit 5adfe72
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@
def successful_body(app, options = {})
retry_limit = options[:retry_limit] || 100
path = options[:path] ? "/#{options[:path]}" : ''
Excon.get("http://#{app.name}.herokuapp.com#{path}", :idempotent => true, :expects => 200, :retry_limit => retry_limit).body
Excon.get("http://#{app.name}.herokuapp.com#{path}",
idempotent: true,
expects: 200,
retry_interval: 0.5,
retry_limit: retry_limit
).body
rescue Excon::HTTPStatus => e
puts e.response.body
raise e
end

def successful_json_body(app, options = {})
Expand Down

0 comments on commit 5adfe72

Please sign in to comment.