Add stress testing for quota-lock and refactor test guard usage

This commit is contained in:
David Osipov
2026-03-21 15:54:14 +04:00
parent c8632de5b6
commit c1ee43fbac
6 changed files with 60 additions and 47 deletions
@@ -18,10 +18,8 @@ fn saturate_lock_cache() -> Vec<Arc<std::sync::Mutex<()>>> {
retained
}
fn quota_test_guard() -> std::sync::MutexGuard<'static, ()> {
super::quota_user_lock_test_guard()
.lock()
.unwrap_or_else(|poisoned| poisoned.into_inner())
fn quota_test_guard() -> impl Drop {
super::quota_user_lock_test_scope()
}
#[tokio::test]