Skip to content

Commit

Permalink
Harden '_list_entries' further against backoff failure.
Browse files Browse the repository at this point in the history
Closes #5303.
  • Loading branch information
tseaver committed Jun 28, 2018
1 parent baf0057 commit 1388554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logging/tests/system/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def _list_entries(logger):
:returns: List of all entries consumed.
"""
inner = RetryResult(_has_entries)(_consume_entries)
outer = RetryErrors((ServiceUnavailable, ResourceExhausted))(inner)
outer = RetryErrors(
(ServiceUnavailable, ResourceExhausted), max_tries=9)(inner)
return outer(logger)


Expand Down

0 comments on commit 1388554

Please sign in to comment.