diff options
author | Mathieu Velten <mathieuv@matrix.org> | 2023-09-15 15:37:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 15:37:44 +0200 |
commit | dd44ee00b6cf4d900e56857039320660400cff37 (patch) | |
tree | 6eca4fb08c6b4133b8617a371d582c8b80381bc4 /tests/rest/client | |
parent | Convert `_insert_graph_receipts_txn` to `simple_upsert` (#16299) (diff) | |
download | synapse-dd44ee00b6cf4d900e56857039320660400cff37.tar.xz |
Add automatic purge after all users forget a room (#15488)
Also add restore of purge/shutdown rooms after a synapse restart. Co-authored-by: Eric Eastwood <erice@matrix.org> Co-authored-by: Erik Johnston <erikj@matrix.org>
Diffstat (limited to 'tests/rest/client')
-rw-r--r-- | tests/rest/client/test_rooms.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/rest/client/test_rooms.py b/tests/rest/client/test_rooms.py index 47c1d38ad7..7627823d3f 100644 --- a/tests/rest/client/test_rooms.py +++ b/tests/rest/client/test_rooms.py @@ -41,7 +41,6 @@ from synapse.api.errors import Codes, HttpResponseException from synapse.appservice import ApplicationService from synapse.events import EventBase from synapse.events.snapshot import EventContext -from synapse.handlers.pagination import PurgeStatus from synapse.rest import admin from synapse.rest.client import account, directory, login, profile, register, room, sync from synapse.server import HomeServer @@ -2086,11 +2085,8 @@ class RoomMessageListTestCase(RoomBase): self.assertEqual(len(chunk), 2, [event["content"] for event in chunk]) # Purge every event before the second event. - purge_id = random_string(16) - pagination_handler._purges_by_id[purge_id] = PurgeStatus() self.get_success( - pagination_handler._purge_history( - purge_id=purge_id, + pagination_handler.purge_history( room_id=self.room_id, token=second_token_str, delete_local_events=True, |