-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add PubSub system test for fix in #4174 #4190
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
Conversation
|
Not sure why, but this is showing the commit from my previous PR. I fetched and merged upstream/master, but maybe I should have rebased on master? Sorry for any inconvenience! |
…allbacks to complete. Guessing this test was succeeding before because of the bug fixed in googleapis#4174 itself.
pubsub/tests/system.py
Outdated
|
|
||
| from __future__ import absolute_import | ||
|
|
||
| from datetime import datetime |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| # Actually run the method and prove that the callback was | ||
| # called in the expected way. | ||
| policy.on_response(response) | ||
| time.sleep(1) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
…sertions in test_on_response, per code review
|
Thought about factoring out: and into a function, but wasn't sure if that was overkill or where to put it... |
|
Gah, coverage. Fixing now... |
|
OK, so showing 100% for everything, but CircleCI shows 98% for |
|
Gah, now I see it locally. Adding a test for |
|
Thank you! |
@lukesneeringer Here's my attempt at a system test for the fix in #4174
Let me know how I can improve it, etc. Thanks.