Fix deleting state groups during room purge.

And fix the tests to actually test that things got deleted.
This commit is contained in:
Erik Johnston 2019-11-06 17:02:05 +00:00
parent 71f3bd734f
commit 5c3363233c
2 changed files with 17 additions and 14 deletions

View file

@ -628,10 +628,12 @@ class PurgeRoomTestCase(unittest.HomeserverTestCase):
"local_invites",
"room_account_data",
"room_tags",
"state_groups",
"state_groups_state",
):
count = self.get_success(
self.store._simple_select_one_onecol(
table="events",
table=table,
keyvalues={"room_id": room_id},
retcol="COUNT(*)",
desc="test_purge_room",