Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit b40ccfb

Browse files
Takashi Matsuoleahecole
authored andcommitted
[container_registry] fix: bump the pubsub timeout [(#3698)](GoogleCloudPlatform/python-docs-samples#3698)
fixes #2894 Co-authored-by: Leah E. Cole <[email protected]>
1 parent 72d73ce commit b40ccfb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/snippets/samples_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ def test_pubsub(self):
175175
time.sleep(SLEEP_TIME)
176176
samples.delete_occurrence(basename(occ.name), PROJECT_ID)
177177
time.sleep(SLEEP_TIME)
178-
job_done.wait(timeout=60)
178+
# We saw occational failure with 60 seconds timeout, so we bumped it
179+
# to 180 seconds.
180+
# See also: python-docs-samples/issues/2894
181+
job_done.wait(timeout=180)
179182
print('done. msg_count = {}'.format(receiver.msg_count))
180183
assert message_count <= receiver.msg_count
181184
finally:

0 commit comments

Comments
 (0)