Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them.

This commit is contained in:
Erik Johnston 2014-09-15 16:40:44 +01:00
parent e639a3516d
commit 59516a8bb1
3 changed files with 18 additions and 13 deletions

View file

@ -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