Skip to content

Commit 6d53ffc

Browse files
author
Takashi Matsuo
committed
longer timeout, more retries
1 parent 420a8eb commit 6d53ffc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vision/cloud-client/detect/detect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
836836
requests=[async_request])
837837

838838
print('Waiting for the operation to finish.')
839-
operation.result(timeout=300)
839+
operation.result(timeout=420)
840840

841841
# Once the request has completed and the output has been
842842
# written to GCS, we can list all the output files.

vision/cloud-client/detect/detect_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test_detect_crop_hints_uri(capsys):
209209
assert 'bounds: ' in out
210210

211211

212-
@pytest.mark.flaky
212+
@pytest.mark.flaky(max_runs=3, min_passes=1)
213213
def test_async_detect_document(capsys):
214214
storage_client = storage.Client()
215215
bucket = storage_client.get_bucket(BUCKET)

0 commit comments

Comments
 (0)