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(mcp): reformat test code for readability
Steven Enamakel49d19958de63
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rsindex 510e02ccbe..5abf5dae80 100644--- a/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs+++ b/crates/openhuman-core/src/tools/impl/network/mcp_tests.rs@@ -378,8 +378,13 @@ async fn endpoint_userinfo_secrets_are_redacted_from_tool_results() {let username = "mcp-user";let password = "url-password-42";let server = echoing_server(password, None).await;- let endpoint = server.uri().replace("http://", &format!("http://{username}:{password}@"));- let registry = registry_with(&format!("{endpoint}/mcp"), crate::config::McpAuthConfig::None);+ let endpoint = server+ .uri()+ .replace("http://", &format!("http://{username}:{password}@"));+ let registry = registry_with(+ &format!("{endpoint}/mcp"),+ crate::config::McpAuthConfig::None,+ );let result = call_tool(registry).execute(call_args()).await@@ -444,10 +449,8 @@ fn scrubber_redacts_url_encoded_secrets_and_ignores_empty_values() {#[test]fn scrubber_collects_url_userinfo_credentials() {- let scrubber = SecretScrubber::new(- &McpDefinitionAuth::None,- "https://short:[email protected]/mcp",- );+ let scrubber =+ SecretScrubber::new(&McpDefinitionAuth::None, "https://short:[email protected]/mcp");assert_eq!(scrubber.scrub("short pw shortpw"),"[redacted] [redacted] shortpw"