summary refs log tree commit diff
path: root/tests/handlers/test_federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-15 16:40:44 +0100
committerErik Johnston <erik@matrix.org>2014-09-15 16:40:44 +0100
commit59516a8bb1cd8040bd07420f84b856bd8904d6c8 (patch)
treedead9dbd62ec1bf03688697c45df0fbbff51f51a /tests/handlers/test_federation.py
parentImprove logging in federation handler. (diff)
downloadsynapse-59516a8bb1cd8040bd07420f84b856bd8904d6c8.tar.xz
Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them.
Diffstat (limited to '')
-rw-r--r--tests/handlers/test_federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/handlers/test_federation.py b/tests/handlers/test_federation.py
index f0308a29d3..eb6b7c22ef 100644
--- a/tests/handlers/test_federation.py
+++ b/tests/handlers/test_federation.py
@@ -74,7 +74,9 @@ class FederationTestCase(unittest.TestCase):
 
         yield self.handlers.federation_handler.on_receive_pdu(pdu, False)
 
-        self.datastore.persist_event.assert_called_once_with(ANY, False)
+        self.datastore.persist_event.assert_called_once_with(
+            ANY, False, is_new_state=False
+        )
         self.notifier.on_new_room_event.assert_called_once_with(ANY)
 
     @defer.inlineCallbacks