From 3bad54da99cc6f3319f79b7546bd6e695ce7c5a2 Mon Sep 17 00:00:00 2001 From: Gus Class Date: Mon, 7 Oct 2019 15:45:22 -0700 Subject: [PATCH] Adds updates for samples profiler ... vision [(#2439)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2439) --- samples/snippets/requirements.txt | 2 +- samples/snippets/subscriber_test.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index d8470ecf9..a97fc0997 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-pubsub==0.39.1 +google-cloud-pubsub==1.0.0 diff --git a/samples/snippets/subscriber_test.py b/samples/snippets/subscriber_test.py index 2dcfb33e2..1a5de9930 100644 --- a/samples/snippets/subscriber_test.py +++ b/samples/snippets/subscriber_test.py @@ -16,6 +16,7 @@ import time from gcp_devrel.testing import eventually_consistent +from gcp_devrel.testing.flaky import flaky from google.cloud import pubsub_v1 import google.api_core.exceptions import mock @@ -193,6 +194,7 @@ def new_sleep(period): return mock.patch('time.sleep', new=new_sleep) +@flaky def test_receive(publisher_client, topic, subscription, capsys): _publish_messages(publisher_client, topic)