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/test_visibility.py | |
parent | Add DataStores and Storage classes. (diff) | |
download | synapse-3ca4c7c516a349cbb9dace0ace33bb889955eda1.tar.xz |
Use new EventPersistenceStore
Diffstat (limited to 'tests/test_visibility.py')
-rw-r--r-- | tests/test_visibility.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_visibility.py b/tests/test_visibility.py index 18f1a0035d..6ae1ea9b04 100644 --- a/tests/test_visibility.py +++ b/tests/test_visibility.py @@ -36,6 +36,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase): self.event_creation_handler = self.hs.get_event_creation_handler() self.event_builder_factory = self.hs.get_event_builder_factory() self.store = self.hs.get_datastore() + self.storage = self.hs.get_storage() yield create_room(self.hs, TEST_ROOM_ID, "@someone:ROOM") @@ -137,7 +138,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase): event, context = yield self.event_creation_handler.create_new_client_event( builder ) - yield self.hs.get_datastore().persist_event(event, context) + yield self.storage.persistence.persist_event(event, context) return event @defer.inlineCallbacks @@ -159,7 +160,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase): builder ) - yield self.hs.get_datastore().persist_event(event, context) + yield self.storage.persistence.persist_event(event, context) return event @defer.inlineCallbacks @@ -180,7 +181,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase): builder ) - yield self.hs.get_datastore().persist_event(event, context) + yield self.storage.persistence.persist_event(event, context) return event @defer.inlineCallbacks |