diff options
author | Erik Johnston <erikj@element.io> | 2024-11-07 15:26:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-07 15:26:14 +0000 |
commit | d0fc1e904a3060b0f459be9aa7df9b9f1501e294 (patch) | |
tree | ca851d5fee20cc0ae8f78a46431f98c9916b09e4 /docs/usage/configuration/user_authentication | |
parent | Fix other unit tests with latest twisted (#17907) (diff) | |
download | synapse-d0fc1e904a3060b0f459be9aa7df9b9f1501e294.tar.xz |
Fix cancellation tests with new Twisted. (#17906)
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>
Diffstat (limited to 'docs/usage/configuration/user_authentication')
0 files changed, 0 insertions, 0 deletions