report_error: Remove reference to old non-existant path.

This commit is contained in:
Alex Vandiver 2023-04-10 18:42:27 +00:00 committed by Tim Abbott
parent 2d5c678614
commit cb7bc1b7b9
2 changed files with 0 additions and 2 deletions

View File

@ -115,7 +115,6 @@ def is_slow_query(time_delta: float, path: str) -> bool:
is_exempt = path in [
"/activity",
"/json/report/error",
"/api/v1/deployments/report_error",
] or path.startswith(("/realm_activity/", "/user_activity/"))
if is_exempt:
return time_delta >= 5

View File

@ -32,7 +32,6 @@ class SlowQueryTest(ZulipTestCase):
self.assertTrue(is_slow_query(5.1, "/activity"))
self.assertFalse(is_slow_query(2, "/activity"))
self.assertFalse(is_slow_query(2, "/json/report/error"))
self.assertFalse(is_slow_query(2, "/api/v1/deployments/report_error"))
self.assertFalse(is_slow_query(2, "/realm_activity/whatever"))
self.assertFalse(is_slow_query(2, "/user_activity/whatever"))
self.assertFalse(is_slow_query(9, "/accounts/webathena_kerberos_login/"))