-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: wrap method in async client #1834
Conversation
tests/system/test_retry.py
Outdated
@@ -45,10 +45,10 @@ def test_retry_bubble(echo): | |||
|
|||
@pytest.mark.asyncio | |||
async def test_retry_bubble_async(async_echo): | |||
with pytest.raises(exceptions.DeadlineExceeded): | |||
with pytest.raises(exceptions.RetryError): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that the exception the user sees in case of an error changes? If so, we should flag this as a breaking change, since users may be catching the previously raised exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's more like this test case was defined incorrectly. Both exceptions.DeadlineExceeded
and exceptoins.RetryError
are raised but we're checking for latter because that confirms that async retry is working as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that exceptions.RetryError
was not raised before.
0ff0980
to
9b3903f
Compare
df677d5
to
dee09be
Compare
dee09be
to
2170b78
Compare
Fixes: googleapis/google-cloud-python#11415 🦕