From 6ab0a777dd7e20ee2181f1eacae38c0ed9838732 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Wed, 2 Dec 2020 11:47:42 -0800 Subject: [PATCH] chore: added retry for flaky test (#84) --- .../samples/analyze/beta_snippets_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py b/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py index 1c9da43acf12..8953c2808a6b 100644 --- a/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py +++ b/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py @@ -149,7 +149,9 @@ def test_track_objects(capsys): assert "Entity id" in out +# Flaky exceeding designed timeout @pytest.mark.slow +@pytest.mark.flaky(max_runs=3, min_passes=1) def test_track_objects_gcs(): in_file = "gs://cloud-samples-data/video/cat.mp4" object_annotations = beta_snippets.track_objects_gcs(in_file)