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

fix(tests): Fix a flaky test by marking a room's members as synced. #4534

Merged

Conversation

andybalaam
Copy link
Member

This is intended to prevent the test
test_when_user_in_verification_violation_becomes_verified_we_report_it flaking. I found that sometimes when it called Room::members the result was empty due to it trying to fetch the answer from the server. This change prevents that behaviour. I don't know why the behaviour was inconsistent before.

This is intended to prevent the test
`test_when_user_in_verification_violation_becomes_verified_we_report_it`
flaking. I found that sometimes when it called `Room::members` the
result was empty due to it trying to fetch the answer from the server.
This change prevents that behaviour. I don't know why the behaviour was
inconsistent before.
@andybalaam andybalaam requested a review from a team as a code owner January 15, 2025 13:11
@andybalaam andybalaam requested review from jmartinesp and removed request for a team January 15, 2025 13:11
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.42%. Comparing base (ee32b1f) to head (b979dee).
Report is 41 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4534      +/-   ##
==========================================
+ Coverage   85.37%   85.42%   +0.04%     
==========================================
  Files         284      285       +1     
  Lines       31893    32108     +215     
==========================================
+ Hits        27229    27427     +198     
- Misses       4664     4681      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@andybalaam andybalaam merged commit 8bd9431 into main Jan 15, 2025
40 checks passed
@andybalaam andybalaam deleted the andybalaam/avoid-flake-in-identity-status-changes-test branch January 15, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants