diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2021-11-01 17:10:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 16:10:09 +0000 |
commit | caa706d82545cda8d0f7c7243623a6de898b55bc (patch) | |
tree | 2faf91cb4ebfd9a35768a41808aa018f913bdf28 /tests/rest | |
parent | Make `check_event_allowed` module API callback not fail open (accept events) ... (diff) | |
download | synapse-caa706d82545cda8d0f7c7243623a6de898b55bc.tar.xz |
Fix a bug in unit test `test_block_room_and_not_purge` (#11226)
Diffstat (limited to 'tests/rest')
-rw-r--r-- | tests/rest/admin/test_room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/admin/test_room.py b/tests/rest/admin/test_room.py index ba6db51c4c..b62a7248e8 100644 --- a/tests/rest/admin/test_room.py +++ b/tests/rest/admin/test_room.py @@ -261,7 +261,7 @@ class DeleteRoomTestCase(unittest.HomeserverTestCase): # Assert one user in room self._is_member(room_id=self.room_id, user_id=self.other_user) - body = json.dumps({"block": False, "purge": False}) + body = json.dumps({"block": True, "purge": False}) channel = self.make_request( "DELETE", @@ -278,7 +278,7 @@ class DeleteRoomTestCase(unittest.HomeserverTestCase): with self.assertRaises(AssertionError): self._is_purged(self.room_id) - self._is_blocked(self.room_id, expect=False) + self._is_blocked(self.room_id, expect=True) self._has_no_members(self.room_id) def test_shutdown_room_consent(self): |