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
fix(test): use unwrap_err for policy denial test
Steven Enamakel90c4a13066a3
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rsindex 9b4f1f2d0f..d777780052 100644--- a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs+++ b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools_tests.rs@@ -141,13 +141,8 @@ async fn act_policy_denial_prevents_configured_server_call() {.find(|tool| tool.name() == name("readGoals")).unwrap();- let result = read.execute(json!({ "list": "work" })).await.unwrap();- assert!(result.is_error);- assert!(- result.text().contains("read-only mode"),- "{}",- result.text()- );+ let error = read.execute(json!({ "list": "work" })).await.unwrap_err();+ assert!(error.to_string().contains("read-only mode"), "{error}");assert_eq!(tools_list_requests(&mock).await, 1);let calls = mock.received_requests().await.unwrap_or_default();assert!(!calls.iter().any(|request| {