Logo
Explore Help
Sign In
MrSphay/Modrinth-plus
1
0
Fork 0
You've already forked Modrinth-plus
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
abf4cd71ba00037d1df1b817bd7d680441a70d31
Modrinth-plus/tests/common/asserts.rs

4 lines
173 B
Rust
Raw Normal View History

Add redis caching to getting user notifications and projects [MOD-540] (#723) * Add redis caching to getting a user's project ids * Run `cargo sqlx prepare` to update the sqlx-data.json * Add redis caching for getting user notifications * Fix new clippy warnings * Remove log that shouldn't have been committed * Batch insert of notifications (untested) * sqlx prepare... * Fix merge conflict things and use new redis struct * Fix bug with calling delete_many without any elements (caught by tests) * cargo sqlx prepare * Add tests around cache invalidation (and fix bug they caught!) * Some test reorg based on code review suggestions
2023-10-12 17:52:24 -05:00
pub fn assert_status(response: actix_web::dev::ServiceResponse, status: actix_http::StatusCode) {
assert_eq!(response.status(), status, "{:#?}", response.response());
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 19ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API