Skip to content

Commit

Permalink
chore: fix flaky test by adding rerun (#77)
Browse files Browse the repository at this point in the history
* chore: fix flaky test by adding rerun

* fixed the lint
  • Loading branch information
munkhuushmgl authored and dandhlee committed Nov 15, 2022
1 parent d759ee0 commit c6d8094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vision/snippets/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import backoff
from google.cloud import storage
import pytest

import detect

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


@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 c6d8094

Please sign in to comment.