Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pubsub/cloud-client/quickstart/sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def callback(message):
# Calling result() on the StreamingPullFuture keeps the main thread alive
# while the callback function processes messages in the background.
try:
streaming_future.result()
streaming_pull_future.result()
except Exception as error:
streaming_future.cancel()
streaming_pull_future.cancel()
raise error


Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-pubsub==1.0.2
google-cloud-pubsub==1.0.0
4 changes: 4 additions & 0 deletions pubsub/cloud-client/subscriber_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ def new_sleep(period):
return mock.patch('time.sleep', new=new_sleep)


<<<<<<< HEAD
@pytest.fixture(scope='module')
=======
@flaky
>>>>>>> 5c2e2a6e6734da91246aec6aa48eb6316e5c47a5
def test_receive(publisher_client, topic, subscription, capsys):
_publish_messages(publisher_client, topic)

Expand Down