()
| 2587 | |
| 2588 | #[tokio::test(flavor = "multi_thread")] |
| 2589 | async fn test_resume_session_not_found() { |
| 2590 | let store = Arc::new(crate::store::MemorySessionStore::new()); |
| 2591 | let agent = Agent::from_config(test_config()).await.unwrap(); |
| 2592 | |
| 2593 | let opts = SessionOptions::new().with_session_store(store.clone()); |
| 2594 | let result = agent.resume_session("nonexistent", opts); |
| 2595 | assert!(result.is_err()); |
| 2596 | assert!(result.unwrap_err().to_string().contains("not found")); |
| 2597 | } |
| 2598 | |
| 2599 | #[tokio::test(flavor = "multi_thread")] |
| 2600 | async fn test_resume_session_no_store() { |
nothing calls this directly
no test coverage detected