summary refs log tree commit diff
path: root/tests/http
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-09-25 03:09:30 +1000
committerAmber Brown <hawkowl@atleastfornow.net>2018-09-25 03:09:30 +1000
commit5121ae97f59c252a471e2ea973460f76a58828df (patch)
treecf1e8e3e66e7b1999bcd04a37838edac91538d86 /tests/http
parentMerge tag 'v0.33.5' (diff)
parentchangelog (diff)
downloadsynapse-5121ae97f59c252a471e2ea973460f76a58828df.tar.xz
Merge tag 'v0.33.5.1'
Internal Changes
----------------

- Fix incompatibility with older Twisted version in tests. Thanks
  @OlegGirko!
([\#3940](https://github.com/matrix-org/synapse/issues/3940))
Diffstat (limited to 'tests/http')
-rw-r--r--tests/http/test_fedclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/http/test_fedclient.py b/tests/http/test_fedclient.py
index 1c46c9cfeb..d45d2bcb16 100644
--- a/tests/http/test_fedclient.py
+++ b/tests/http/test_fedclient.py
@@ -49,7 +49,7 @@ class FederationClientTests(HomeserverTestCase):
     def test_client_never_connect(self):
         """
         If the HTTP request is not connected and is timed out, it'll give a
-        ConnectingCancelledError.
+        ConnectingCancelledError or TimeoutError.
         """
         d = self.cl._request("testserv:8008", "GET", "foo/bar", timeout=10000)
 
@@ -71,7 +71,7 @@ class FederationClientTests(HomeserverTestCase):
         self.reactor.advance(10.5)
         f = self.failureResultOf(d)
 
-        self.assertIsInstance(f.value, ConnectingCancelledError)
+        self.assertIsInstance(f.value, (ConnectingCancelledError, TimeoutError))
 
     def test_client_connect_no_response(self):
         """