-
Notifications
You must be signed in to change notification settings - Fork 52
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 lazy-loading /sync
tests for faster room joins
#442
Add lazy-loading /sync
tests for faster room joins
#442
Conversation
Test that lazy-loading `/sync`s do not block when receiving events from remote senders. Also test that lazy-loading `/sync`s return the appropriate memberships for event senders.
The three new tests have a lot of duplicate code. Suggestions for tidying them up are welcome. |
if err == nil { | ||
t.Errorf("gappy /sync returned the first event unexpectedly") | ||
} | ||
|
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.
I wonder if we should also assert that the limited
flag is set? I don't think it matters much for this test, but in general I think it might avoid potential pitfalls to explicitly assert that.
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.
I've added a check for the limited
flag.
Do not merge this yet - the objections from #440 need to be resolved. |
Test that lazy-loading
/sync
s do not block when receiving events fromremote senders. Also test that lazy-loading
/sync
s return theappropriate memberships for event senders.
Contains some changes from #440 and #441.