The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(embed): await agent removal before asserting workspace cleanup
Steven Enamakel0f2a13dfde5a
diff --git a/crates/openhuman-embed/tests/harness_embed.rs b/crates/openhuman-embed/tests/harness_embed.rsindex 277613bd7a..5a27481703 100644--- a/crates/openhuman-embed/tests/harness_embed.rs+++ b/crates/openhuman-embed/tests/harness_embed.rs@@ -252,6 +252,14 @@ fn a_harness_runs_a_turn_against_the_provider_it_was_given() {"got {err:?}");+ // Dropping the agent only schedules its MCP close, and the deferred+ // close keeps the ephemeral workspace until it is acknowledged;+ // removing the agent awaits the close first.+ harness+ .runtime()+ .remove_agent(openhuman_embed::HARNESS_AGENT_ID)+ .await+ .expect("the harness agent is removed and its cleanup acknowledged");drop(harness);assert!(!workspace_dir.exists(),