Skip to content

Commit 9be40dd

Browse files
committed
wait max 60 seconds
1 parent 2b7e4ab commit 9be40dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/tests/test_e2e.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
LOG: logging.Logger = logging.getLogger(__name__)
1616

17-
MAX_WAIT_ATTEMPTS = 25
17+
MAX_WAIT_SECONDS = 60
1818

1919

2020
def fullSetupDockerCompose() -> DockerCompose:
@@ -72,7 +72,7 @@ def test_smoke(self) -> None:
7272
def wait_for_sync(self, cf_client):
7373
seconds_to_wait = 1
7474
total_seconds_waited = 0
75-
for _ in range(MAX_WAIT_ATTEMPTS):
75+
while total_seconds_waited < MAX_WAIT_SECONDS:
7676
try:
7777
channels = cf_client.find(name="*")
7878
LOG.info(
@@ -86,4 +86,4 @@ def wait_for_sync(self, cf_client):
8686
LOG.error(e)
8787
time.sleep(seconds_to_wait)
8888
total_seconds_waited += seconds_to_wait
89-
seconds_to_wait *= 2
89+
seconds_to_wait += 2

0 commit comments

Comments
 (0)