pull/6392/head
Brendan Abolivier 2019-11-20 15:08:47 +00:00
parent 486be06f48
commit e2a20326e8
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 8 additions and 6 deletions

View File

@ -948,12 +948,14 @@ class RoomMessageListTestCase(RoomBase):
# Purge every event before the second event. # Purge every event before the second event.
purge_id = random_string(16) purge_id = random_string(16)
pagination_handler._purges_by_id[purge_id] = PurgeStatus() pagination_handler._purges_by_id[purge_id] = PurgeStatus()
self.get_success(pagination_handler._purge_history( self.get_success(
purge_id=purge_id, pagination_handler._purge_history(
room_id=self.room_id, purge_id=purge_id,
token=second_token, room_id=self.room_id,
delete_local_events=True, token=second_token,
)) delete_local_events=True,
)
)
# Check that we only get the second message through /message now that the first # Check that we only get the second message through /message now that the first
# has been purged. # has been purged.