MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_session_set_lane_handler

Function test_session_set_lane_handler

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

Source from the content-addressed store, hash-verified

1969
1970#[tokio::test(flavor = "multi_thread")]
1971async fn test_session_set_lane_handler() {
1972 let agent = Agent::from_config(test_config()).await.unwrap();
1973 let qc = SessionQueueConfig::default();
1974 let opts = SessionOptions::new().with_queue_config(qc);
1975 let session = agent
1976 .session("/tmp/test-workspace-handler", Some(opts))
1977 .unwrap();
1978
1979 // Set Execute lane to External mode
1980 session
1981 .set_lane_handler(
1982 SessionLane::Execute,
1983 LaneHandlerConfig {
1984 mode: crate::queue::TaskHandlerMode::External,
1985 timeout_ms: 30_000,
1986 },
1987 )
1988 .await;
1989
1990 // No panic = success. The handler config is stored internally.
1991 // We can't directly read it back but we verify no errors.
1992}
1993
1994// ========================================================================
1995// Session Persistence Tests

Callers

nothing calls this directly

Calls 4

with_queue_configMethod · 0.80
test_configFunction · 0.70
sessionMethod · 0.45
set_lane_handlerMethod · 0.45

Tested by

no test coverage detected