Skip to content

Commit

Permalink
[container_registry] fix: bump the pubsub timeout [(#3698)](GoogleClo…
Browse files Browse the repository at this point in the history
…udPlatform/python-docs-samples#3698)

fixes #2894

Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
  • Loading branch information
2 people authored and busunkim96 committed Aug 7, 2020
1 parent fe9e206 commit 2e7c129
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ def test_pubsub(self):
time.sleep(SLEEP_TIME)
samples.delete_occurrence(basename(occ.name), PROJECT_ID)
time.sleep(SLEEP_TIME)
job_done.wait(timeout=60)
# We saw occational failure with 60 seconds timeout, so we bumped it
# to 180 seconds.
# See also: python-docs-samples/issues/2894
job_done.wait(timeout=180)
print('done. msg_count = {}'.format(receiver.msg_count))
assert message_count <= receiver.msg_count
finally:
Expand Down

0 comments on commit 2e7c129

Please sign in to comment.