summary refs log tree commit diff
path: root/tests/federation/test_federation.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-12-18 18:47:13 +0000
committerMark Haines <mark.haines@matrix.org>2014-12-18 18:47:13 +0000
commit041ac476a53f7adaa436309ccbb85f269bbb47dd (patch)
tree0157b5c391a54b73a3a50e8fa1ad947c00131ea0 /tests/federation/test_federation.py
parentReplace distributor deferred list, with a simple for loop until I understand ... (diff)
downloadsynapse-041ac476a53f7adaa436309ccbb85f269bbb47dd.tar.xz
Supply auth_chain along with current state in '/state/', fetch auth events from a remote server if we are missing some of them
Diffstat (limited to '')
-rw-r--r--tests/federation/test_federation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/federation/test_federation.py b/tests/federation/test_federation.py
index 79ac1ce10d..3e484cd303 100644
--- a/tests/federation/test_federation.py
+++ b/tests/federation/test_federation.py
@@ -52,6 +52,7 @@ class FederationTestCase(unittest.TestCase):
             "get_received_txn_response",
             "set_received_txn_response",
             "get_destination_retry_timings",
+            "get_auth_chain",
         ])
         self.mock_persistence.get_received_txn_response.return_value = (
             defer.succeed(None)
@@ -59,6 +60,7 @@ class FederationTestCase(unittest.TestCase):
         self.mock_persistence.get_destination_retry_timings.return_value = (
             defer.succeed(DestinationsTable.EntryType("", 0, 0))
         )
+        self.mock_persistence.get_auth_chain.return_value = []
         self.mock_config = Mock()
         self.mock_config.signing_key = [MockKey()]
         self.clock = MockClock()