Navigation Menu

Skip to content

Commit

Permalink
Fix HTTP tests by making the new Signet::RemoteServerError retriable
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma committed Aug 22, 2018
1 parent d4cd1fe commit b33c970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/google/apis/core/http_command.rb
Expand Up @@ -99,7 +99,7 @@ def execute(client)
# NotFound, etc
auth_tries = (try == 1 && authorization_refreshable? ? 2 : 1)
Retriable.retriable tries: auth_tries,
on: [Google::Apis::AuthorizationError, Signet::AuthorizationError],
on: [Google::Apis::AuthorizationError, Signet::AuthorizationError, Signet::RemoteServerError],
on_retry: proc { |*| refresh_authorization } do
execute_once(client).tap do |result|
if block_given?
Expand Down

0 comments on commit b33c970

Please sign in to comment.