Skip to content

Commit dfe801f

Browse files
author
Takashi Matsuo
authored
fix(sample): bump the max_time to 10 mins for a flaky test (#311)
fixes #291
1 parent fd798f5 commit dfe801f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/google-cloud-pubsub/samples/snippets/subscriber_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ def test_receive_with_delivery_attempts(
243243
):
244244

245245
# The dlq subscription raises 404 before it's ready.
246-
@backoff.on_exception(backoff.expo, (Unknown, NotFound), max_time=300)
246+
# We keep retrying up to 10 minutes for mitigating the flakiness.
247+
@backoff.on_exception(backoff.expo, (Unknown, NotFound), max_time=600)
247248
def run_sample():
248249
_publish_messages(publisher_client, topic)
249250

0 commit comments

Comments
 (0)