Navigation Menu

Skip to content

Commit

Permalink
fix: add InternalServerError to list of expected errors (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Jan 12, 2021
1 parent 92b287f commit 9bf49f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/system/test_system.py
Expand Up @@ -20,6 +20,7 @@

from google.api_core.exceptions import BadGateway
from google.api_core.exceptions import Conflict
from google.api_core.exceptions import InternalServerError
from google.api_core.exceptions import NotFound
from google.api_core.exceptions import TooManyRequests
from google.api_core.exceptions import ResourceExhausted
Expand Down Expand Up @@ -68,7 +69,9 @@ def _list_entries(logger):
:returns: List of all entries consumed.
"""
inner = RetryResult(_has_entries, max_tries=9)(_consume_entries)
outer = RetryErrors((ServiceUnavailable, ResourceExhausted), max_tries=9)(inner)
outer = RetryErrors(
(ServiceUnavailable, ResourceExhausted, InternalServerError), max_tries=9
)(inner)
return outer(logger)


Expand Down

0 comments on commit 9bf49f5

Please sign in to comment.