Skip to content

Commit 52746f8

Browse files
committed
use rerunfailures
1 parent 0da8924 commit 52746f8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docker/mongodb-kubernetes-tests/tests/replicaset/replica_set_pv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def test_replica_set_sts_exists(self):
2222
sts = self.appsv1.read_namespaced_stateful_set("rs001-pv", self.namespace)
2323
assert sts
2424

25+
@pytest.mark.flaky(reruns=3, reruns_delay=2)
2526
def test_sts_creation(self):
2627
sts = self.appsv1.read_namespaced_stateful_set("rs001-pv", self.namespace)
2728

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ types-python-dateutil==2.9.0.20250809
4949
pipupgrade==1.12.0
5050
pytest-cov==6.2.1
5151
pytest-socket==0.7.0
52+
pytest-rerunfailures==16.0

0 commit comments

Comments
 (0)