From 2c24bd63662edcefdbd5a80b327c9db2b7186fc9 Mon Sep 17 00:00:00 2001 From: Mateo Wang <277851410+mateo-berri@users.noreply.github.com> Date: Thu, 18 Jun 2026 15:31:38 -0700 Subject: [PATCH] style: make chained comparison of status_code clearer Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- tests/e2e_tests/proxy_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e_tests/proxy_client.py b/tests/e2e_tests/proxy_client.py index deeaf830f2c..cadbb9d5268 100644 --- a/tests/e2e_tests/proxy_client.py +++ b/tests/e2e_tests/proxy_client.py @@ -54,7 +54,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]}"