diff --git a/tests/e2e/e2e_http.py b/tests/e2e/e2e_http.py index 1fea12e1417..3a5973cd8b0 100644 --- a/tests/e2e/e2e_http.py +++ b/tests/e2e/e2e_http.py @@ -91,7 +91,7 @@ class ProbeResult(BaseModel): @property def healthy(self) -> bool: - return 200 <= self.status_code != 404 and self.status_code < 500 + return 200 <= self.status_code < 500 and self.status_code != 404 class StreamingResponse(BaseModel): diff --git a/tests/e2e/proxy_client.py b/tests/e2e/proxy_client.py index d90e4ef0bb0..151aa37a594 100644 --- a/tests/e2e/proxy_client.py +++ b/tests/e2e/proxy_client.py @@ -74,7 +74,7 @@ class ProbeResult: def healthy(self) -> bool: # Route exists (not 404), handler did not crash (not 5xx), request # completed (not -1). A 4xx (missing params/auth) still means it ran. - return 200 <= self.status_code != 404 and self.status_code < 500 + return 200 <= self.status_code < 500 and self.status_code != 404 def __str__(self) -> str: return f"GET {self.url} -> {self.status_code}\n{self.body[:600]}"