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

Function test_session_with_queue_config

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

Source from the content-addressed store, hash-verified

1829
1830#[tokio::test(flavor = "multi_thread")]
1831async fn test_session_with_queue_config() {
1832 let agent = Agent::from_config(test_config()).await.unwrap();
1833 let qc = SessionQueueConfig::default();
1834 let opts = SessionOptions::new().with_queue_config(qc);
1835 let session = agent.session("/tmp/test-workspace-queue", Some(opts));
1836 assert!(session.is_ok());
1837 let session = session.unwrap();
1838 assert!(session.has_queue());
1839}
1840
1841#[tokio::test]
1842async fn test_session_without_queue_config() {

Callers

nothing calls this directly

Calls 3

with_queue_configMethod · 0.80
test_configFunction · 0.70
sessionMethod · 0.45

Tested by

no test coverage detected