Skip to content

Commit 6bed007

Browse files
Takashi Matsuoleahecole
Takashi Matsuo
andauthored
[container_registry] fix: bump the pubsub timeout (GoogleCloudPlatform#3698)
fixes GoogleCloudPlatform#2894 Co-authored-by: Leah E. Cole <[email protected]>
1 parent f6fb9e1 commit 6bed007

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

container_registry/container_analysis/samples_test.py

+4-1
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)