summary refs log tree commit diff
path: root/tests/api/test_ratelimiting.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2025-04-29 14:08:22 +0100
committerGitHub <noreply@github.com>2025-04-29 14:08:22 +0100
commitad140130cc3db503de3fd15aa2923417f46b700b (patch)
treec36565b61618c44292b6214456acd7c96a4bdcdb /tests/api/test_ratelimiting.py
parentDo not retry push during backoff period (#18363) (diff)
downloadsynapse-ad140130cc3db503de3fd15aa2923417f46b700b.tar.xz
Slight performance increase when using the ratelimiter (#18369)
See the commits.
Diffstat (limited to 'tests/api/test_ratelimiting.py')
-rw-r--r--tests/api/test_ratelimiting.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/api/test_ratelimiting.py b/tests/api/test_ratelimiting.py

index a59e168db1..1a1cbde74e 100644 --- a/tests/api/test_ratelimiting.py +++ b/tests/api/test_ratelimiting.py
@@ -220,9 +220,7 @@ class TestRatelimiter(unittest.HomeserverTestCase): self.assertIn("test_id_1", limiter.actions) - self.get_success_or_raise( - limiter.can_do_action(None, key="test_id_2", _time_now_s=10) - ) + self.reactor.advance(60) self.assertNotIn("test_id_1", limiter.actions)