-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test for /context/ with lazy_load_members filter #468
Conversation
tests/10apidoc/00prepare.pl
Outdated
@@ -42,3 +42,56 @@ sub new_User | |||
|
|||
return $user; | |||
} | |||
|
|||
|
|||
# assert that the given members are in the body of a sync response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels out of place here. did it need to move out of 15lazy-members.pl?
tests/10apidoc/00prepare.pl
Outdated
|
||
|
||
# assert that the given members are present in a block of state events | ||
sub assert_room_members_in_state { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow this name makes me think we're checking the state contains at least these members. Maybe assert_state_room_members_matches
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also feels out of place. I'm not really keen on this file being used as a dumping ground for random assertion functions.
Maybe 10apidoc/09synced.pl
is a more appropriate home?
tests/10apidoc/00prepare.pl
Outdated
sub assert_room_members_in_state { | ||
my ( $events, $member_ids ) = @_; | ||
|
||
log_if_fail "members:", $member_ids; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/"members:"/"expected members:"/?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally lgtm modulo pedantry about naming and where functions go
And update log line to be more specific
\o/ |
tests matrix-org/synapse#3567