aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2019-05-28 14:12:08 -0400
committerGitHub <noreply@github.com>2019-05-28 14:12:08 -0400
commit8c415c71e41561e767d53d3ebe8b0b0ba6d3c905 (patch)
treea03dfb4302dd9a4ac9601d019b46cc628bf4a8f9 /tests
parent49f2ef5169a4068dc8561ad1447c47d70873b74c (diff)
downloadpython-api-core-8c415c71e41561e767d53d3ebe8b0b0ba6d3c905.tar.gz
Core: Classify 503 Service Unavailable errors as transient. (#8182)
Also, pin grpcio < 2.0dev. Closes #5410.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_retry.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/test_retry.py b/tests/unit/test_retry.py
index 013b6ad..53c2396 100644
--- a/tests/unit/test_retry.py
+++ b/tests/unit/test_retry.py
@@ -41,6 +41,7 @@ def test_if_exception_type_multiple():
def test_if_transient_error():
assert retry.if_transient_error(exceptions.InternalServerError(""))
assert retry.if_transient_error(exceptions.TooManyRequests(""))
+ assert retry.if_transient_error(exceptions.ServiceUnavailable(""))
assert not retry.if_transient_error(exceptions.InvalidArgument(""))