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

task(crypto_tests): Re-shape tests for UtdCause #4349

Merged
merged 6 commits into from
Dec 2, 2024

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Nov 29, 2024

Part of element-hq/element-meta#2638

If you review commit by commit you will see explanations for what I did, but you will read more code in total.

@andybalaam andybalaam requested review from a team as code owners November 29, 2024 10:47
@andybalaam andybalaam requested review from jmartinesp and BillCarsonFr and removed request for a team November 29, 2024 10:47
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.16%. Comparing base (d49d122) to head (0b89ba9).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4349      +/-   ##
==========================================
- Coverage   85.18%   85.16%   -0.02%     
==========================================
  Files         280      280              
  Lines       30729    30729              
==========================================
- Hits        26176    26170       -6     
- Misses       4553     4559       +6     

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

@andybalaam andybalaam changed the title refactor(crypto) Re-shape tests for UtdCause task(crypto_tests): Re-shape tests for UtdCause Dec 2, 2024
@andybalaam andybalaam force-pushed the andybalaam/utd_cause_tests_refactor branch from 778dc5d to 914b7cd Compare December 2, 2024 10:59
@andybalaam
Copy link
Member Author

Rebased on top of CI fixes. No changes to my commits except updated their descriptions.

Copy link
Member

@BillCarsonFr BillCarsonFr 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 minor comment, if we could have const for 1111 / 5555 / 9999 to show the relation between them as it is important (5555 should be in between the 2 others)

…rrectly

This test was checking that a new device which has access to backups
returned an unknown UTD when it was given empty JSON for the event. It
was only passing because we currently have incorrect behaviour when
backups are enabled.

The fix is to make the device old and without access to backups, so that
we still consider this UTD unexpected.
@andybalaam andybalaam force-pushed the andybalaam/utd_cause_tests_refactor branch from 5db4563 to 0b89ba9 Compare December 2, 2024 17:20
@andybalaam andybalaam enabled auto-merge (rebase) December 2, 2024 17:21
@andybalaam andybalaam merged commit 50f036d into main Dec 2, 2024
39 checks passed
@andybalaam andybalaam deleted the andybalaam/utd_cause_tests_refactor branch December 2, 2024 17:34
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