Added retries for NTP peers state test
Added retries for NTP peers state test because when the cloud
was deployed recently or NTP service was restarted with new
pools/servers, it takes some time to get expected NTP peers state.
Change-Id: Ibc4620e5fcc2d112361667992aa75fa68771aa0f
Realated: PROD-30970
diff --git a/test_set/cvp-sanity/requirements.txt b/test_set/cvp-sanity/requirements.txt
index b45a29e..fc42a2b 100644
--- a/test_set/cvp-sanity/requirements.txt
+++ b/test_set/cvp-sanity/requirements.txt
@@ -1,4 +1,5 @@
pytest==3.7.1
+pytest-rerunfailures==7.0
requests>=2.20.0
flake8
PyYAML
diff --git a/test_set/cvp-sanity/tests/test_ntp_sync.py b/test_set/cvp-sanity/tests/test_ntp_sync.py
index 998aa31..2589165 100644
--- a/test_set/cvp-sanity/tests/test_ntp_sync.py
+++ b/test_set/cvp-sanity/tests/test_ntp_sync.py
@@ -32,6 +32,7 @@
)
+@pytest.mark.flaky(reruns=5, reruns_delay=60)
@pytest.mark.smoke
def test_ntp_peers_state(local_salt_client):
"""Test gets ntpq peers state and checks the system peer is declared"""