Skip to content
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

Deflake faster joins device list tests by waiting for leave event #627

Merged
merged 4 commits into from
Mar 16, 2023

Commits on Mar 15, 2023

  1. Add MustJoinRoom option to allow Complement to do a partial state join

    Some of the faster joins tests have two Complement homeservers in the
    same room. We need both Complement homeservers to believe they are in
    the room, so that we can wait to observe a leave for the test user as
    part of test cleanup. The easiest way to do this is to have the second
    Complement homeserver perform a real join.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    4d31726 View commit details
    Browse the repository at this point in the history
  2. Allow Complement homeservers to contact each other

    This is useful for setting up tests with two Complement homeservers in
    the same room by having one of them join off the other.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    5b64af3 View commit details
    Browse the repository at this point in the history
  3. Have the second Complement homeserver join rooms properly

    ...so that we can wait for the homeserver under test to send us leave
    events during test cleanup.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    e7f7e71 View commit details
    Browse the repository at this point in the history
  4. Leave rooms in test cleanup: device list tests

    This depends on the second Complement homeserver believing it is joined
    to the test room.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    926a40f View commit details
    Browse the repository at this point in the history