()
| 173 | |
| 174 | #[tokio::test] |
| 175 | async fn test_set_idle_removes() { |
| 176 | let mgr = SessionStatusManager::new(); |
| 177 | mgr.set_busy("ses_123").await; |
| 178 | mgr.set_idle("ses_123").await; |
| 179 | assert!(!mgr.is_busy("ses_123").await); |
| 180 | let list = mgr.list().await; |
| 181 | assert!(!list.contains_key("ses_123")); |
| 182 | } |
| 183 | |
| 184 | #[tokio::test] |
| 185 | async fn test_set_retry() { |