mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
Fix a bug in unit test test_block_room_and_not_purge
(#11226)
This commit is contained in:
parent
69ab3dddbc
commit
caa706d825
2 changed files with 3 additions and 2 deletions
1
changelog.d/11226.misc
Normal file
1
changelog.d/11226.misc
Normal file
|
@ -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 a new issue