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

Function test_session_tool_timeout_configured

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

Source from the content-addressed store, hash-verified

2800
2801#[tokio::test(flavor = "multi_thread")]
2802async fn test_session_tool_timeout_configured() {
2803 let agent = Agent::from_config(test_config()).await.unwrap();
2804 let opts = SessionOptions::new().with_tool_timeout(5000);
2805 let session = agent.session("/tmp/test-ws-timeout", Some(opts)).unwrap();
2806 assert!(!session.id().is_empty());
2807}
2808
2809// ========================================================================
2810// Queue fallback tests

Callers

nothing calls this directly

Calls 3

with_tool_timeoutMethod · 0.80
test_configFunction · 0.70
sessionMethod · 0.45

Tested by

no test coverage detected