diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-23 12:02:36 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-23 16:15:03 +0100 |
commit | 3ca4c7c516a349cbb9dace0ace33bb889955eda1 (patch) | |
tree | 7cd54d5d59316ef65d5511dfb3a7a59827524363 /tests/storage/test_roommember.py | |
parent | Add DataStores and Storage classes. (diff) | |
download | synapse-3ca4c7c516a349cbb9dace0ace33bb889955eda1.tar.xz |
Use new EventPersistenceStore
Diffstat (limited to 'tests/storage/test_roommember.py')
-rw-r--r-- | tests/storage/test_roommember.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/storage/test_roommember.py b/tests/storage/test_roommember.py index 447a3c6ffb..9ddd17f73d 100644 --- a/tests/storage/test_roommember.py +++ b/tests/storage/test_roommember.py @@ -44,6 +44,7 @@ class RoomMemberStoreTestCase(unittest.HomeserverTestCase): # We can't test the RoomMemberStore on its own without the other event # storage logic self.store = hs.get_datastore() + self.storage = hs.get_storage() self.event_builder_factory = hs.get_event_builder_factory() self.event_creation_handler = hs.get_event_creation_handler() @@ -70,7 +71,7 @@ class RoomMemberStoreTestCase(unittest.HomeserverTestCase): self.event_creation_handler.create_new_client_event(builder) ) - self.get_success(self.store.persist_event(event, context)) + self.get_success(self.storage.persistence.persist_event(event, context)) return event |