Skip to content

Commit

Permalink
[vision] fix: longer timeout (#3447)
Browse files Browse the repository at this point in the history
fixes #2962
  • Loading branch information
Takashi Matsuo committed Apr 21, 2020
1 parent 9c492b5 commit fb9ef51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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=180)
operation.result(timeout=300)

# Once the request has completed and the output has been
# written to GCS, we can list all the output files.
Expand Down
2 changes: 2 additions & 0 deletions vision/cloud-client/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import uuid

from google.cloud import storage
import pytest

import detect

Expand Down Expand Up @@ -208,6 +209,7 @@ def test_detect_crop_hints_uri(capsys):
assert 'bounds: ' in out


@pytest.mark.flaky
def test_async_detect_document(capsys):
storage_client = storage.Client()
bucket = storage_client.get_bucket(BUCKET)
Expand Down
1 change: 1 addition & 0 deletions vision/cloud-client/detect/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest==5.3.2
flaky==3.6.1

0 comments on commit fb9ef51

Please sign in to comment.