mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-23 10:05:55 +03:00
d0fc1e904a
The latest Twisted release changed how they implemented `__await__` on deferreds, which broke the machinery we used to test cancellation. This PR changes things a bit to instead patch the `__await__` method, which is a stable API. This mostly doesn't change the core logic, except for fixing two bugs: - We previously did not intercept all await points - After cancellation we now need to not only unblock currently blocked await points, but also make sure we don't block any future await points. c.f. https://github.com/twisted/twisted/pull/12226 --------- Co-authored-by: Devon Hudson <devon.dmytro@gmail.com> |
||
---|---|---|
.. | ||
federation | ||
server | ||
__init__.py | ||
ca.crt | ||
ca.key | ||
server.key | ||
test_additional_resource.py | ||
test_client.py | ||
test_endpoint.py | ||
test_matrixfederationclient.py | ||
test_proxy.py | ||
test_proxyagent.py | ||
test_servlet.py | ||
test_simple_client.py | ||
test_site.py |