()
| 204 | |
| 205 | #[tokio::test] |
| 206 | async fn test_list() { |
| 207 | let mgr = SessionStatusManager::new(); |
| 208 | mgr.set_busy("ses_1").await; |
| 209 | mgr.set_busy("ses_2").await; |
| 210 | let list = mgr.list().await; |
| 211 | assert_eq!(list.len(), 2); |
| 212 | assert!(list.contains_key("ses_1")); |
| 213 | assert!(list.contains_key("ses_2")); |
| 214 | } |
| 215 | |
| 216 | #[tokio::test] |
| 217 | async fn test_with_bus() { |