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

MatrixRTC: MembershipManager test cases #4713

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from

Conversation

toger5
Copy link
Contributor

@toger5 toger5 commented Feb 17, 2025

Part of element-hq/element-call#2972.

This shouldn't introduce any behaviour changes, but refactor the tests to be based on the MembershipManager abstraction. It includes some tests which would fail on the current LegacyMembershipManager implementation which will be handled by a new implementation.

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

Copy link
Member

@hughns hughns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few quick things. I haven't looked at the main test cases yet.

@toger5 toger5 force-pushed the hughns/membershipmanager-test-cases branch from a2702a3 to 987863a Compare February 17, 2025 14:16
toger5 added a commit that referenced this pull request Feb 17, 2025
Pulled out from #4713
@toger5 toger5 mentioned this pull request Feb 17, 2025
4 tasks
github-merge-queue bot pushed a commit that referenced this pull request Feb 17, 2025
@toger5 toger5 force-pushed the hughns/membershipmanager-test-cases branch from 8926281 to d9192f3 Compare February 17, 2025 15:05
@toger5 toger5 changed the title Hughns/membershipmanager test cases MembershipManager test cases Feb 17, 2025
@hughns hughns added T-Task Tasks for the team like planning and removed T-Enhancement labels Feb 19, 2025
@hughns hughns changed the title MembershipManager test cases MatrixRTC: MembershipManager test cases Feb 19, 2025
Copy link
Member

@hughns hughns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This review is for the new leave() test cases added by 4e60a35

Aside from this I have added in some comments on the open threads.

@toger5
Copy link
Contributor Author

toger5 commented Feb 26, 2025

@hughns @dbkr I updated the flushPromise topic in the NewMembershipManager PR. Should I backport the change or should we keep it for now since we know all flushPromises will be removed once that is merged?

Back porting was easy enough. So I will create a commit very soon with the backport.

Make every mock return a Promise if the real implementation does return a pormise.
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes, looks good.

@toger5 toger5 added this pull request to the merge queue Feb 26, 2025
@toger5 toger5 removed this pull request from the merge queue due to a manual request Feb 26, 2025
@toger5 toger5 added this pull request to the merge queue Feb 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants