()
| 1969 | |
| 1970 | #[tokio::test(flavor = "multi_thread")] |
| 1971 | async 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 |
nothing calls this directly
no test coverage detected