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 Dec 2, 2020
1 parent 6679033 commit 23e8599
Showing 1 changed file with 2 additions and 0 deletions.
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 23e8599

Please sign in to comment.