summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-05-11 14:52:26 +0100
committerGitHub <noreply@github.com>2022-05-11 14:52:26 +0100
commit6ee61b905256f87dc2b75007ed711cd59065db9a (patch)
treecbde33f2ea43c6c7c1180e1f7085682c52fdf0d8 /tests
parentReload cache factors from disk on SIGHUP (#12673) (diff)
downloadsynapse-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.py2
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):