Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion experimenter/tests/integration/nimbus/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def pytest_addoption(parser):


KINTO_DRIVING_FIXTURES = frozenset({"kinto_client", "live_rollout"})
TEARDOWN_APPROVAL_RETRIES = 15


@pytest.hookimpl(tryfirst=True)
Expand Down Expand Up @@ -172,7 +173,7 @@ def selenium(selenium, experiment_slug, kinto_client):
try:
if not helpers.is_rollout(experiment_slug):
helpers.end_experiment(experiment_slug)
kinto_client.approve()
kinto_client().approve(retries=TEARDOWN_APPROVAL_RETRIES)
except Exception:
pass

Expand Down
4 changes: 2 additions & 2 deletions experimenter/tests/integration/nimbus/kinto/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def _fetch_collection_data(self):
def _has_pending_review(self):
return self._fetch_collection_data()["status"] == KINTO_REVIEW_STATUS

def approve(self):
for _ in range(self.RETRIES):
def approve(self, retries=RETRIES):
for _ in range(retries):
if self._has_pending_review():
try:
self.kinto_http_client.patch_collection(
Expand Down
Loading