Skip to content

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

test(mcp): assert tool reply and drop debug tracing

Steven Enamakeleceef4403677
diff --git a/crates/openhuman-embed/tests/mcp_module.rs b/crates/openhuman-embed/tests/mcp_module.rs
index d6892b9cbe..2781184a17 100644
--- a/crates/openhuman-embed/tests/mcp_module.rs
+++ b/crates/openhuman-embed/tests/mcp_module.rs
@@ -56,7 +56,6 @@ fn an_embedded_runtime_calls_a_tool_through_the_tinymcp_module() {
}
fn scenario() {
- let _ = tracing_subscriber::fmt().with_env_filter("debug,hyper=info,reqwest=info").with_test_writer().try_init();
let rt = runtime();
openhuman_embed::modules::register_linked("tinymcp", tinymcp::linked_module);
rt.block_on(async {
@@ -122,10 +121,7 @@ fn scenario() {
.map(str::to_string)
})
.collect();
- eprintln!(
- "REPLY={} RESULTS={results} METHODS={methods:?}",
- reply.reply
- );
+ assert_eq!(reply.reply, "done");
assert!(
methods.iter().any(|m| m == "tools/call"),
"{methods:?} / {results}"