-
Notifications
You must be signed in to change notification settings - Fork 271
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(ffi): match the right status code in Client::is_room_alias_available
#4235
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4235 +/- ##
==========================================
- Coverage 84.89% 84.86% -0.03%
==========================================
Files 274 274
Lines 29689 29712 +23
==========================================
+ Hits 25204 25215 +11
- Misses 4485 4497 +12 ☔ 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.
How come we don't need to change a test? Could it be that we don't have one? 😨
Anyways, would be nice to add it now.
Will FFI layer tests run in the CI? If so, I'll add one, I thought they didn't 🫤 . |
Doesn't seem like it. I think that we should either enable them or move the bulk of the logic to the main crate and add a test there. Fixing a bug without a test sounds worse to me. |
fb29192
to
07ab725
Compare
Moved the fn to the SDK crate and added some tests, now the FFI layer only maps some values and calls the inner function. |
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.
Nice, thanks for adding the test.
Small reminder, please use the MatrixMockServer
for new tests in the future.
07ab725
to
cd62cc6
Compare
I implemented a new endpoint in |
cd62cc6
to
a273022
Compare
Previously I was matching a different error state, so it turns out the code was failing 🫠 .
Signed-off-by: