()
| 2735 | |
| 2736 | #[tokio::test(flavor = "multi_thread")] |
| 2737 | async fn test_session_with_memory_store() { |
| 2738 | use a3s_memory::InMemoryStore; |
| 2739 | let store = Arc::new(InMemoryStore::new()); |
| 2740 | let agent = Agent::from_config(test_config()).await.unwrap(); |
| 2741 | let opts = SessionOptions::new().with_memory(store); |
| 2742 | let session = agent.session("/tmp/test-ws-memory", Some(opts)).unwrap(); |
| 2743 | assert!(session.memory().is_some()); |
| 2744 | } |
| 2745 | |
| 2746 | #[tokio::test(flavor = "multi_thread")] |
| 2747 | async fn test_session_without_memory_store() { |
nothing calls this directly
no test coverage detected