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

Function test_session_dead_letters_empty

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

Source from the content-addressed store, hash-verified

1932
1933#[tokio::test(flavor = "multi_thread")]
1934async fn test_session_dead_letters_empty() {
1935 let agent = Agent::from_config(test_config()).await.unwrap();
1936 let qc = SessionQueueConfig::default().with_dlq(Some(100));
1937 let opts = SessionOptions::new().with_queue_config(qc);
1938 let session = agent
1939 .session("/tmp/test-workspace-dlq", Some(opts))
1940 .unwrap();
1941 let dead = session.dead_letters().await;
1942 assert!(dead.is_empty());
1943}
1944
1945#[tokio::test(flavor = "multi_thread")]
1946async fn test_session_queue_metrics_disabled() {

Callers

nothing calls this directly

Calls 5

with_dlqMethod · 0.80
with_queue_configMethod · 0.80
test_configFunction · 0.70
sessionMethod · 0.45
dead_lettersMethod · 0.45

Tested by

no test coverage detected