Skip to content

Commit 3c38d9e

Browse files
gguussplamut
authored andcommitted
Adds updates for samples profiler ... vision [(#2439)](GoogleCloudPlatform/python-docs-samples#2439)
1 parent daaf4d6 commit 3c38d9e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

samples/snippets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-pubsub==0.39.1
1+
google-cloud-pubsub==1.0.0

samples/snippets/subscriber_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import time
1717

1818
from gcp_devrel.testing import eventually_consistent
19+
from gcp_devrel.testing.flaky import flaky
1920
from google.cloud import pubsub_v1
2021
import google.api_core.exceptions
2122
import mock
@@ -193,6 +194,7 @@ def new_sleep(period):
193194
return mock.patch('time.sleep', new=new_sleep)
194195

195196

197+
@flaky
196198
def test_receive(publisher_client, topic, subscription, capsys):
197199
_publish_messages(publisher_client, topic)
198200

0 commit comments

Comments
 (0)