mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 13:04:51 -04:00
Test that bans win a join against a race when computing /sync
response (#11701)
This commit is contained in:
parent
6a04767439
commit
2bb4bd1269
3 changed files with 105 additions and 3 deletions
|
@ -196,6 +196,16 @@ class RestHelper:
|
|||
expect_code=expect_code,
|
||||
)
|
||||
|
||||
def ban(self, room: str, src: str, targ: str, **kwargs: object):
|
||||
"""A convenience helper: `change_membership` with `membership` preset to "ban"."""
|
||||
self.change_membership(
|
||||
room=room,
|
||||
src=src,
|
||||
targ=targ,
|
||||
membership=Membership.BAN,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
def change_membership(
|
||||
self,
|
||||
room: str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue