Skip to content

Commit

Permalink
workaround oci env
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
chr-stian committed Mar 5, 2024
1 parent ce04f98 commit aef237d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions galaxy_ng/tests/integration/utils/pulp_interfaces.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import time

from ansible.galaxy.api import GalaxyError

from galaxy_ng.tests.integration.utils import (
wait_for_task, wait_for_all_tasks
)
Expand All @@ -22,7 +24,15 @@ def cleanup(self):
except: # noqa
pass

wait_for_all_tasks(self.client)
# FIXME - the POST call will often result in an error with the oci+insights profile ...
retries = 10
for x in range(0, retries):
try:
wait_for_all_tasks(self.client)
break
except GalaxyError as e:
print(e)
time.sleep(5)

self.cleanup_hrefs = []

Expand Down Expand Up @@ -74,7 +84,7 @@ def create(self):
time.sleep(5)

if _repo is None:
raise Exception("failed to create repo and dist")
raise Exception("failed to create repo")
self._repo = _repo

resp = self.client(
Expand Down

0 comments on commit aef237d

Please sign in to comment.