diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-10-30 10:17:10 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-10-30 10:17:10 -0400 |
commit | 7d7eac61be337b7a3ed7274a13e131f41d0966d9 (patch) | |
tree | e6f70c499902b00ed0450e24bb4132e3079698e6 /tests/storage/test_room.py | |
parent | black (diff) | |
parent | Merge pull request #6240 from matrix-org/erikj/split_out_persistence_store (diff) | |
download | synapse-7d7eac61be337b7a3ed7274a13e131f41d0966d9.tar.xz |
Merge branch 'develop' into cross-signing_federation
Diffstat (limited to 'tests/storage/test_room.py')
-rw-r--r-- | tests/storage/test_room.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/storage/test_room.py b/tests/storage/test_room.py index 1bee45706f..3ddaa151fe 100644 --- a/tests/storage/test_room.py +++ b/tests/storage/test_room.py @@ -62,6 +62,7 @@ class RoomEventsStoreTestCase(unittest.TestCase): # Room events need the full datastore, for persist_event() and # get_room_state() self.store = hs.get_datastore() + self.storage = hs.get_storage() self.event_factory = hs.get_event_factory() self.room = RoomID.from_string("!abcde:test") @@ -72,7 +73,7 @@ class RoomEventsStoreTestCase(unittest.TestCase): @defer.inlineCallbacks def inject_room_event(self, **kwargs): - yield self.store.persist_event( + yield self.storage.persistence.persist_event( self.event_factory.create_event(room_id=self.room.to_string(), **kwargs) ) |