Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setup for
TestMembersLocal
tests and split into sync types (#563)
Depending on timings, the "Existing members see new members' presence" test in `TestMembersLocal` may see the expected join and presence in an initial or incremental sync. Both types of sync elicit different behaviour in homeserver implementations, such as Synapse. Split the test into initial and incremental sync variants to eliminate the race condition. In addition, fix the initial sync case by explicitly setting Bob's presence to online. The spec does not guarantee that Bob will have a non-offline presence after merely joining a room, nor does the spec guarantee that offline presences will show up in initial syncs. Fixes matrix-org/synapse#13199.
- Loading branch information