simplify waiting for outpost

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-01-16 01:03:26 +01:00
parent e8e42261e3
commit af85ddf60b
5 changed files with 20 additions and 69 deletions

View File

@ -76,17 +76,7 @@ class TestProviderProxyForward(SeleniumTestCase):
outpost.build_user_permissions(outpost.user)
self.start_outpost(outpost)
# Wait until outpost healthcheck succeeds
healthcheck_retries = 0
while healthcheck_retries < 50: # noqa: PLR2004
if len(outpost.state) > 0:
state = outpost.state[0]
if state.last_seen:
break
healthcheck_retries += 1
sleep(0.5)
sleep(5)
self.wait_for_outpost(outpost)
@retry()
def test_traefik(self):