Skip to content

Commit 4da8bd9

Browse files
authored
Logging: harden systest teardown against 'DeadlineExceeded' retry errors. (#6182)
Closes #6115.
1 parent 75358e5 commit 4da8bd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

logging/tests/system/test_system.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from google.api_core.exceptions import NotFound
2222
from google.api_core.exceptions import TooManyRequests
2323
from google.api_core.exceptions import ResourceExhausted
24+
from google.api_core.exceptions import RetryError
2425
from google.api_core.exceptions import ServiceUnavailable
2526
from google.cloud._helpers import UTC
2627
import google.cloud.logging
@@ -104,7 +105,8 @@ def setUp(self):
104105
self._handlers_cache = logging.getLogger().handlers[:]
105106

106107
def tearDown(self):
107-
retry = RetryErrors((NotFound, TooManyRequests), max_tries=9)
108+
retry = RetryErrors(
109+
(NotFound, TooManyRequests, RetryError), max_tries=9)
108110
for doomed in self.to_delete:
109111
try:
110112
retry(doomed.delete)()

0 commit comments

Comments
 (0)