diff options
author | Erik Johnston <erik@matrix.org> | 2019-11-06 17:02:05 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-11-06 17:02:08 +0000 |
commit | 5c3363233cca7044a333b7e19ba239eaf5587ff8 (patch) | |
tree | fd4d33bdc81b530cd7233654ad79ceaa2a616756 /tests/rest | |
parent | Use correct type annotation (diff) | |
download | synapse-5c3363233cca7044a333b7e19ba239eaf5587ff8.tar.xz |
Fix deleting state groups during room purge.
And fix the tests to actually test that things got deleted.
Diffstat (limited to 'tests/rest')
-rw-r--r-- | tests/rest/admin/test_admin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rest/admin/test_admin.py b/tests/rest/admin/test_admin.py index 8e1ca8b738..d9f1b95cb0 100644 --- a/tests/rest/admin/test_admin.py +++ b/tests/rest/admin/test_admin.py @@ -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", |