Skip to content
Permalink
Browse files
fix(sample): bump the max_time to 10 mins for a flaky test (#311)
fixes #291
  • Loading branch information
tmatsuo committed Mar 8, 2021
1 parent f890d2d commit e2678d47c08e6b03782d2d744a4e630b933fdd51
Showing with 2 additions and 1 deletion.
  1. +2 −1 samples/snippets/subscriber_test.py
@@ -243,7 +243,8 @@ def test_receive_with_delivery_attempts(
):

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

0 comments on commit e2678d4

Please sign in to comment.