Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(host_agent): refine deadline enforcement tests

Steven Enamakel660cc9aa9bb4
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
index 5801b1ea83..df222610cb 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
@@ -640,8 +640,7 @@ async fn native_host_agent_turn_enforces_the_configured_channel_deadline_inner()
);
tokio::select! {
result = &mut turn => panic!(
- "channel pipeline completed before a model request: result={result:?}, sent={:#?}, provider_requests={:#?}",
- channel.sent.lock().unwrap(),
+ "channel pipeline completed before a model request: result={result:?}, provider_requests={:#?}",
server.received_requests().await.unwrap(),
),
arrived = tokio::time::timeout(
@@ -649,8 +648,7 @@ async fn native_host_agent_turn_enforces_the_configured_channel_deadline_inner()
request_arrived.notified(),
) => if arrived.is_err() {
panic!(
- "no model request reached the delayed provider; sent={:#?}, provider_requests={:#?}",
- channel.sent.lock().unwrap(),
+ "no model request reached the delayed provider; provider_requests={:#?}",
server.received_requests().await.unwrap(),
);
},