Skip to content

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

test(embed): include request logs in channel agent assertion

Steven Enamakel7f7d72fd1efc
diff --git a/crates/openhuman-embed/tests/channel_agents.rs b/crates/openhuman-embed/tests/channel_agents.rs
index 3b123958ee..e774acb4a7 100644
--- a/crates/openhuman-embed/tests/channel_agents.rs
+++ b/crates/openhuman-embed/tests/channel_agents.rs
@@ -234,7 +234,9 @@ fn a_telegram_message_is_answered_by_the_bound_runtime_agent() {
}
assert!(
sent.iter().any(|text| text.contains("teeny says hi")),
- "the agent's reply was posted to the chat: {sent:?}"
+ "the agent's reply was posted to the chat: {sent:?}; Bot API requests: {:#?}; model requests: {:#?}",
+ bot_api.received_requests().await.unwrap_or_default(),
+ chat_requests(&provider).await
);
assert!(listener.is_running());
listener.stop();