Skip to content

Commit

Permalink
waiting until the keycloak instance is going to start and ready to be…
Browse files Browse the repository at this point in the history
… available.

Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>

Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
  • Loading branch information
lokeshrangineni committed Jan 7, 2025
1 parent f1d6021 commit 15acebf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdk/python/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ def start_keycloak_server():
random_sleep_time = random.uniform(0, 2)
time.sleep(random_sleep_time)
if shared_state.get("keycloak_starting", True):
logger.info("Keycloak server is still starting. waiting for it to start...")
time.sleep(1)
logger.info(
"Keycloak server is still starting. waiting for it to start..."
)
time.sleep(retry_interval)
continue

if shared_state.get("keycloak_started", False):
Expand Down

0 comments on commit 15acebf

Please sign in to comment.