Skip to content

Commit db13215

Browse files
authored
chore: fix flaky test by adding rerun (#77)
* chore: fix flaky test by adding rerun * fixed the lint
1 parent d28eb2a commit db13215

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vision/snippets/detect/detect_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import backoff
1919
from google.cloud import storage
20+
import pytest
2021

2122
import detect
2223

@@ -242,6 +243,7 @@ def test_detect_crop_hints_uri(capsys):
242243
assert 'bounds: ' in out
243244

244245

246+
@pytest.mark.flaky(max_runs=3, min_passes=1)
245247
def test_async_detect_document(capsys):
246248
storage_client = storage.Client()
247249
bucket = storage_client.get_bucket(BUCKET)

0 commit comments

Comments
 (0)