Skip to content

Commit

Permalink
chore: only sleep before a retry, not after
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 19, 2017
1 parent 800f5cd commit 24a5473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/client/retry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def self.until_true options = {}
rescue RescuableError => e
tries += 1
$stderr.puts "Error making request - #{e.message}, attempt #{tries} of #{max_tries}"
sleep options
raise e if max_tries == tries
sleep options
end
end
end
Expand Down

0 comments on commit 24a5473

Please sign in to comment.