mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 13:29:21 -05:00
Fix test.
This commit is contained in:
parent
ca041d5526
commit
f0dd6d4cbd
@ -183,7 +183,17 @@ class EventStreamPermissionsTestCase(RestTestCase):
|
||||
)
|
||||
self.assertEquals(200, code, msg=str(response))
|
||||
|
||||
self.assertEquals(0, len(response["chunk"]))
|
||||
# We may get a presence event for ourselves down
|
||||
self.assertEquals(
|
||||
0,
|
||||
len([
|
||||
c for c in response["chunk"]
|
||||
if not (
|
||||
c.get("type") == "m.presence"
|
||||
and c["content"].get("user_id") == self.user_id
|
||||
)
|
||||
])
|
||||
)
|
||||
|
||||
# joined room (expect all content for room)
|
||||
yield self.join(room=room_id, user=self.user_id, tok=self.token)
|
||||
|
Loading…
Reference in New Issue
Block a user