Skip to content

Commit 38014f8

Browse files
author
Takashi Matsuo
committed
[container_registry] fix: bump the pubsub timeout
fixes GoogleCloudPlatform#2894
1 parent 47bec7e commit 38014f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

container_registry/container_analysis/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)