diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-08-30 06:10:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-30 11:10:56 +0100 |
commit | ebd8374fb5f10f84fc818058100ec7ae284835b3 (patch) | |
tree | 573bbc6ebae3af171e3b95007802d5b9618e8047 /tests/handlers | |
parent | Describe which rate limiter was hit in logs (#16135) (diff) | |
download | synapse-ebd8374fb5f10f84fc818058100ec7ae284835b3.tar.xz |
Stop writing to the event_txn_id table (#16175)
Diffstat (limited to 'tests/handlers')
-rw-r--r-- | tests/handlers/test_message.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/handlers/test_message.py b/tests/handlers/test_message.py index 9691d66b48..1c5897c84e 100644 --- a/tests/handlers/test_message.py +++ b/tests/handlers/test_message.py @@ -46,18 +46,11 @@ class EventCreationTestCase(unittest.HomeserverTestCase): self._persist_event_storage_controller = persistence self.user_id = self.register_user("tester", "foobar") - self.access_token = self.login("tester", "foobar") - self.room_id = self.helper.create_room_as(self.user_id, tok=self.access_token) - - info = self.get_success( - self.hs.get_datastores().main.get_user_by_access_token( - self.access_token, - ) - ) - assert info is not None - self.token_id = info.token_id + device_id = "dev-1" + access_token = self.login("tester", "foobar", device_id=device_id) + self.room_id = self.helper.create_room_as(self.user_id, tok=access_token) - self.requester = create_requester(self.user_id, access_token_id=self.token_id) + self.requester = create_requester(self.user_id, device_id=device_id) def _create_and_persist_member_event(self) -> Tuple[EventBase, EventContext]: # Create a member event we can use as an auth_event |