Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix a bug in unit test test_block_room_and_not_purge (#11226)
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel authored Nov 1, 2021
1 parent 69ab3dd commit caa706d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/11226.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug in unit test `test_block_room_and_not_purge`.
4 changes: 2 additions & 2 deletions tests/rest/admin/test_room.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_block_room_and_not_purge(self):
# 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",
Expand All @@ -278,7 +278,7 @@ def test_block_room_and_not_purge(self):

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):
Expand Down

0 comments on commit caa706d

Please sign in to comment.