mirror of
https://github.com/telemt/telemt.git
synced 2026-06-20 02:00:09 +07:00
Add stress testing for quota-lock and refactor test guard usage
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user