-
Notifications
You must be signed in to change notification settings - Fork 260
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
Simplify exists_on_server tests #4355
Conversation
@@ -1282,4 +1254,60 @@ mod test { | |||
|
|||
server.verify().await; | |||
} | |||
|
|||
async fn mock_backup_exists(server: &MockServer) -> MockGuard { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should become part of the MatrixMockServer
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 0d7bbb4
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4355 +/- ##
==========================================
- Coverage 85.14% 85.11% -0.04%
==========================================
Files 280 280
Lines 30764 30793 +29
==========================================
+ Hits 26193 26208 +15
- Misses 4571 4585 +14 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the tests look much nicer now.
6f1588f
to
944a1ba
Compare
This is part of element-hq/element-meta#2638
I am planning to add a
fast_exists_on_server
method which uses a locally-cached value. This change makes the tests ready so I can re-use parts of them in my tests for the new method.