Skip to content

Commit

Permalink
longer timeout, more retries
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo committed May 13, 2020
1 parent 420a8eb commit 6d53ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vision/cloud-client/detect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
requests=[async_request])

print('Waiting for the operation to finish.')
operation.result(timeout=300)
operation.result(timeout=420)

# Once the request has completed and the output has been
# written to GCS, we can list all the output files.
Expand Down
2 changes: 1 addition & 1 deletion vision/cloud-client/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def test_detect_crop_hints_uri(capsys):
assert 'bounds: ' in out


@pytest.mark.flaky
@pytest.mark.flaky(max_runs=3, min_passes=1)
def test_async_detect_document(capsys):
storage_client = storage.Client()
bucket = storage_client.get_bucket(BUCKET)
Expand Down

0 comments on commit 6d53ffc

Please sign in to comment.