Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vision] fix: longer timeout #3447

Merged
merged 2 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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