Fix a bug in unit test test_block_room_and_not_purge (#11226)

This commit is contained in:
Dirk Klimpel 2021-11-01 17:10:09 +01:00 committed by GitHub
parent 69ab3dddbc
commit caa706d825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog.d/11226.misc Normal file
View file

@ -0,0 +1 @@
Fix a bug in unit test `test_block_room_and_not_purge`.

View file

@ -261,7 +261,7 @@ class DeleteRoomTestCase(unittest.HomeserverTestCase):
# Assert one user in room # Assert one user in room
self._is_member(room_id=self.room_id, user_id=self.other_user) 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( channel = self.make_request(
"DELETE", "DELETE",
@ -278,7 +278,7 @@ class DeleteRoomTestCase(unittest.HomeserverTestCase):
with self.assertRaises(AssertionError): with self.assertRaises(AssertionError):
self._is_purged(self.room_id) 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) self._has_no_members(self.room_id)
def test_shutdown_room_consent(self): def test_shutdown_room_consent(self):