MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_resume_session_not_found

Function test_resume_session_not_found

core/src/agent_api/tests.rs:2589–2597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2587
2588#[tokio::test(flavor = "multi_thread")]
2589async 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")]
2600async fn test_resume_session_no_store() {

Callers

nothing calls this directly

Calls 4

with_session_storeMethod · 0.80
test_configFunction · 0.70
cloneMethod · 0.45
resume_sessionMethod · 0.45

Tested by

no test coverage detected