diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-05-11 14:52:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 14:52:26 +0100 |
commit | 6ee61b905256f87dc2b75007ed711cd59065db9a (patch) | |
tree | cbde33f2ea43c6c7c1180e1f7085682c52fdf0d8 /tests | |
parent | Reload cache factors from disk on SIGHUP (#12673) (diff) | |
download | synapse-6ee61b905256f87dc2b75007ed711cd59065db9a.tar.xz |
Complain if a federation endpoint has the `@cancellable` flag (#12705)
`BaseFederationServlet` wraps its endpoints in a bunch of async code that has not been vetted for compatibility with cancellation. Fail CI if a `@cancellable` flag is applied to a federation endpoint. Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/federation/transport/server/test__base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/federation/transport/server/test__base.py b/tests/federation/transport/server/test__base.py index 98a951f03e..ac3695a8cc 100644 --- a/tests/federation/transport/server/test__base.py +++ b/tests/federation/transport/server/test__base.py @@ -59,6 +59,8 @@ class BaseFederationServletCancellationTests( ): """Tests for `BaseFederationServlet` cancellation.""" + skip = "`BaseFederationServlet` does not support cancellation yet." + path = f"{CancellableFederationServlet.PREFIX}{CancellableFederationServlet.PATH}" def create_test_resource(self): |