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

Function test_session_queue_metrics_disabled

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

Source from the content-addressed store, hash-verified

1944
1945#[tokio::test(flavor = "multi_thread")]
1946async fn test_session_queue_metrics_disabled() {
1947 let agent = Agent::from_config(test_config()).await.unwrap();
1948 // Metrics not enabled
1949 let qc = SessionQueueConfig::default();
1950 let opts = SessionOptions::new().with_queue_config(qc);
1951 let session = agent
1952 .session("/tmp/test-workspace-nomet", Some(opts))
1953 .unwrap();
1954 let metrics = session.queue_metrics().await;
1955 assert!(metrics.is_none());
1956}
1957
1958#[tokio::test(flavor = "multi_thread")]
1959async fn test_session_queue_metrics_enabled() {

Callers

nothing calls this directly

Calls 4

with_queue_configMethod · 0.80
test_configFunction · 0.70
sessionMethod · 0.45
queue_metricsMethod · 0.45

Tested by

no test coverage detected