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(raw_coverage): remove obsolete test for MCP error conversion
Steven Enamakel1946a360bfd0
diff --git a/tests/raw_coverage/tools_erased_host_extension_raw_coverage_e2e.rs b/tests/raw_coverage/tools_erased_host_extension_raw_coverage_e2e.rsindex 8b8710dd1a..d2af3042b7 100644--- a/tests/raw_coverage/tools_erased_host_extension_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tools_erased_host_extension_raw_coverage_e2e.rs@@ -28,7 +28,6 @@ use async_trait::async_trait;use serde_json::{json, Value};use openhuman_core::agent::tool_policy::{GeneratedToolRuntimeContext, GeneratedToolRuntimeRisk};-use openhuman_core::skills::types::tool_result_from_mcp;use openhuman_core::tools::host_extensions::{generated_runtime_context, pack_registry_handle};use openhuman_core::tools::toolpacks::registry::{CATALOG, PACKS};use tinyagents_harness::tool::packs::{PackRegistryHandle, UseSkillTool};@@ -130,42 +129,6 @@ fn a_generated_tools_runtime_context_reads_back_with_its_policy_fields() {assert_eq!(context.approval_id.as_deref(), Some("approval-1"));}-/// The MCP → host result conversion keeps the error flag the right way round.-///-/// #5841 turned this from a `From` impl into the free function-/// `skills::types::tool_result_from_mcp`, because `ToolResult` became a foreign-/// type and the orphan rule forbade the impl. The PR's own note gives the-/// reason it stays written exactly once: spelled out at each of its three call-/// sites, it would be three chances to get the error flag backwards. Nothing-/// asserted the orientation.-#[test]-fn an_mcp_error_result_stays_an_error_through_the_conversion() {- let failed = tool_result_from_mcp(tinymcp_bus::McpToolResult {- content: vec![tinymcp_bus::McpToolContent::Text {- text: "server refused".to_string(),- }],- is_error: true,- ..Default::default()- });- assert!(- failed.is_error,- "an MCP result flagged as an error must stay an error; inverting this \- reports a failed tool call to the model as a success"- );-- let ok = tool_result_from_mcp(tinymcp_bus::McpToolResult {- content: vec![tinymcp_bus::McpToolContent::Text {- text: "done".to_string(),- }],- is_error: false,- ..Default::default()- });- assert!(- !ok.is_error,- "a successful MCP result must not be reported as an error"- );-}-// ── fixtures ──────────────────────────────────────────────────────────────struct PlainTool;