Skip to content

Commit dc70c13

Browse files
authored
Attempt to fix the E2E tests (#2384)
1 parent 83eb9f6 commit dc70c13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/e2e/e2e/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def wait_for(fn: Callable[[], bool], timeout=None) -> bool:
3939

4040
def apis_ready(client: cx.Client, api_names: List[str], timeout: Optional[int] = None) -> bool:
4141
def _check_liveness(status):
42-
return status["requested"] == status["ready"] == status["up_to_date"]
42+
return (
43+
status["requested"] > 0
44+
and status["requested"] == status["ready"] == status["up_to_date"]
45+
)
4346

4447
def _is_ready():
4548
return all([_check_liveness(client.get_api(name)["status"]) for name in api_names])

0 commit comments

Comments
 (0)