Fix a bug in unit test `test_block_room_and_not_purge` (#11226)
This commit is contained in:
parent
69ab3dddbc
commit
caa706d825
|
@ -0,0 +1 @@
|
|||
Fix a bug in unit test `test_block_room_and_not_purge`.
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue