diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-15 16:40:44 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-15 16:40:44 +0100 |
commit | 59516a8bb1cd8040bd07420f84b856bd8904d6c8 (patch) | |
tree | dead9dbd62ec1bf03688697c45df0fbbff51f51a /tests/handlers/test_federation.py | |
parent | Improve logging in federation handler. (diff) | |
download | synapse-59516a8bb1cd8040bd07420f84b856bd8904d6c8.tar.xz |
Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them.
Diffstat (limited to 'tests/handlers/test_federation.py')
-rw-r--r-- | tests/handlers/test_federation.py | 4 |
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 |