From b8cd02457a7511c687351899ea60826e4f1f5d58 Mon Sep 17 00:00:00 2001 From: Ioana Grigoropol <14314993+ju0gri@users.noreply.github.com> Date: Wed, 11 Nov 2020 18:24:33 +0000 Subject: [PATCH] tests: mark azure test as flaky (#4881) Related: #4792 Signed-off-by: Ioana Grigoropol --- tests/func/test_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/func/test_api.py b/tests/func/test_api.py index 695861358..15fae724a 100644 --- a/tests/func/test_api.py +++ b/tests/func/test_api.py @@ -1,6 +1,7 @@ import os import pytest +from flaky.flaky_decorator import flaky from funcy import first, get_in from dvc import api @@ -97,6 +98,7 @@ def test_open_external(tmp_dir, erepo_dir, cloud): assert api.read("version", repo=repo_url, rev="branch") == "branchver" +@flaky(max_runs=3, min_passes=1) @pytest.mark.parametrize("remote", all_clouds, indirect=True) def test_open_granular(tmp_dir, dvc, remote): tmp_dir.dvc_gen({"dir": {"foo": "foo-text"}})