mirror of https://github.com/zulip/zulip.git
report_error: Remove reference to old non-existant path.
This commit is contained in:
parent
2d5c678614
commit
cb7bc1b7b9
|
@ -115,7 +115,6 @@ def is_slow_query(time_delta: float, path: str) -> bool:
|
||||||
is_exempt = path in [
|
is_exempt = path in [
|
||||||
"/activity",
|
"/activity",
|
||||||
"/json/report/error",
|
"/json/report/error",
|
||||||
"/api/v1/deployments/report_error",
|
|
||||||
] or path.startswith(("/realm_activity/", "/user_activity/"))
|
] or path.startswith(("/realm_activity/", "/user_activity/"))
|
||||||
if is_exempt:
|
if is_exempt:
|
||||||
return time_delta >= 5
|
return time_delta >= 5
|
||||||
|
|
|
@ -32,7 +32,6 @@ class SlowQueryTest(ZulipTestCase):
|
||||||
self.assertTrue(is_slow_query(5.1, "/activity"))
|
self.assertTrue(is_slow_query(5.1, "/activity"))
|
||||||
self.assertFalse(is_slow_query(2, "/activity"))
|
self.assertFalse(is_slow_query(2, "/activity"))
|
||||||
self.assertFalse(is_slow_query(2, "/json/report/error"))
|
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, "/realm_activity/whatever"))
|
||||||
self.assertFalse(is_slow_query(2, "/user_activity/whatever"))
|
self.assertFalse(is_slow_query(2, "/user_activity/whatever"))
|
||||||
self.assertFalse(is_slow_query(9, "/accounts/webathena_kerberos_login/"))
|
self.assertFalse(is_slow_query(9, "/accounts/webathena_kerberos_login/"))
|
||||||
|
|
Loading…
Reference in New Issue