Skip to content

Commit

Permalink
Minor change for retry logic for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
yuokada committed Sep 29, 2022
1 parent 3d0f0e4 commit 190fd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def run_with_retry(client, sql)
return columns, rows
rescue Trino::Client::TrinoQueryError => e
if RETRYABLE_ERRORS.any? { |error| e.message =~ error }
sleep(i)
sleep(2 ** i)
i += 1
next
end
Expand Down

0 comments on commit 190fd92

Please sign in to comment.