Skip to content

Commit

Permalink
move delay
Browse files Browse the repository at this point in the history
  • Loading branch information
sfowl committed Nov 18, 2024
1 parent e9f774a commit eab7fd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e-tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def wait_until_ready(**kwargs):
start_time = time.time()

while time.time() - start_time < timeout:
time.sleep(2)
try:
pods = corev1.list_namespaced_pod(namespace=NAMESPACE, **kwargs)
if len(pods.items) != 1:
Expand All @@ -50,8 +51,6 @@ def wait_until_ready(**kwargs):
logging.info(f"{pod.metadata.name} Ready={condition.status}")
if condition.status == "True":
return True

time.sleep(2)
except client.ApiException as e:
logging.error(f"Error checking pod status: {e}")
return False
Expand Down

0 comments on commit eab7fd8

Please sign in to comment.