diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-30 14:58:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 14:58:44 +0100 |
commit | b7fe62b7660eb5836878d888937bcb327659cfd2 (patch) | |
tree | 5e0beaa14d2e9abc82116a7a07740abf2508177b /tests/test_federation.py | |
parent | Merge pull request #6291 from matrix-org/erikj/fix_cache_descriptor (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_out_... (diff) | |
download | synapse-b7fe62b7660eb5836878d888937bcb327659cfd2.tar.xz |
Merge pull request #6240 from matrix-org/erikj/split_out_persistence_store
Move persist_events out from main data store.
Diffstat (limited to 'tests/test_federation.py')
-rw-r--r-- | tests/test_federation.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_federation.py b/tests/test_federation.py index a73f18f88e..d1acb16f30 100644 --- a/tests/test_federation.py +++ b/tests/test_federation.py @@ -36,7 +36,8 @@ class MessageAcceptTests(unittest.TestCase): # Figure out what the most recent event is most_recent = self.successResultOf( maybeDeferred( - self.homeserver.datastore.get_latest_event_ids_in_room, self.room_id + self.homeserver.get_datastore().get_latest_event_ids_in_room, + self.room_id, ) )[0] @@ -75,7 +76,8 @@ class MessageAcceptTests(unittest.TestCase): self.assertEqual( self.successResultOf( maybeDeferred( - self.homeserver.datastore.get_latest_event_ids_in_room, self.room_id + self.homeserver.get_datastore().get_latest_event_ids_in_room, + self.room_id, ) )[0], "$join:test.serv", @@ -97,7 +99,8 @@ class MessageAcceptTests(unittest.TestCase): # Figure out what the most recent event is most_recent = self.successResultOf( maybeDeferred( - self.homeserver.datastore.get_latest_event_ids_in_room, self.room_id + self.homeserver.get_datastore().get_latest_event_ids_in_room, + self.room_id, ) )[0] @@ -137,6 +140,6 @@ class MessageAcceptTests(unittest.TestCase): # Make sure the invalid event isn't there extrem = maybeDeferred( - self.homeserver.datastore.get_latest_event_ids_in_room, self.room_id + self.homeserver.get_datastore().get_latest_event_ids_in_room, self.room_id ) self.assertEqual(self.successResultOf(extrem)[0], "$join:test.serv") |