Skip to content

Commit

Permalink
fix(sample): bump the max_time to 10 mins for a flaky test (#311)
Browse files Browse the repository at this point in the history
fixes #291
  • Loading branch information
Takashi Matsuo committed Mar 8, 2021
1 parent f890d2d commit e2678d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/snippets/subscriber_test.py
Expand Up @@ -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)

Expand Down

0 comments on commit e2678d4

Please sign in to comment.