Skip to content

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

test(openhuman-embed): run mcp module scenario on a larger stack

Steven Enamakel258054572fac
diff --git a/crates/openhuman-embed/tests/mcp_module.rs b/crates/openhuman-embed/tests/mcp_module.rs
index 83e89f2bb6..15e1ad4e44 100644
--- a/crates/openhuman-embed/tests/mcp_module.rs
+++ b/crates/openhuman-embed/tests/mcp_module.rs
@@ -37,6 +37,17 @@ impl wiremock::Respond for McpStub {
#[test]
fn an_embedded_runtime_calls_a_tool_through_the_tinymcp_module() {
+ // The turn's future is large; `block_on` polls it on this thread, which
+ // would otherwise have the default test stack.
+ std::thread::Builder::new()
+ .stack_size(openhuman_embed::process::AGENT_WORKER_STACK_BYTES)
+ .spawn(scenario)
+ .expect("spawn")
+ .join()
+ .expect("scenario");
+}
+
+fn scenario() {
let _ = tracing_subscriber::fmt()
.with_env_filter("debug,hyper=info,reqwest=info")
.with_test_writer()