diff options
author | Erik Johnston <erikj@jki.re> | 2018-02-06 17:01:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 17:01:17 +0000 |
commit | 617199d73df9fb06f8ade6989b2ef477336f7530 (patch) | |
tree | dee7ee2966595657c2013490e23053a8c3a2850e /tests/storage/test_roommember.py | |
parent | Store state groups separately from events (#2784) (diff) | |
parent | Update copyright (diff) | |
download | synapse-617199d73df9fb06f8ade6989b2ef477336f7530.tar.xz |
Merge pull request #2847 from matrix-org/erikj/separate_event_creation
Split event creation into a separate handler
Diffstat (limited to 'tests/storage/test_roommember.py')
-rw-r--r-- | tests/storage/test_roommember.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/storage/test_roommember.py b/tests/storage/test_roommember.py index 1be7d932f6..657b279e5d 100644 --- a/tests/storage/test_roommember.py +++ b/tests/storage/test_roommember.py @@ -37,8 +37,7 @@ class RoomMemberStoreTestCase(unittest.TestCase): # storage logic self.store = hs.get_datastore() self.event_builder_factory = hs.get_event_builder_factory() - self.handlers = hs.get_handlers() - self.message_handler = self.handlers.message_handler + self.event_creation_handler = hs.get_event_creation_handler() self.u_alice = UserID.from_string("@alice:test") self.u_bob = UserID.from_string("@bob:test") @@ -58,7 +57,7 @@ class RoomMemberStoreTestCase(unittest.TestCase): "content": {"membership": membership}, }) - event, context = yield self.message_handler._create_new_client_event( + event, context = yield self.event_creation_handler.create_new_client_event( builder ) |