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
style(composio): wrap the fail-closed tests as rustfmt does
M3gA-Mind35c51b7395c6
diff --git a/crates/openhuman-core/src/integrations/composio/ops/scope_prefs_tests.rs b/crates/openhuman-core/src/integrations/composio/ops/scope_prefs_tests.rsindex 027e791056..894dedaca4 100644--- a/crates/openhuman-core/src/integrations/composio/ops/scope_prefs_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/ops/scope_prefs_tests.rs@@ -84,7 +84,10 @@ async fn a_legacy_pref_either_reaches_the_module_or_stays_stored() {assert_eq!(pref, Ok(stored), "the migrated row must decide visibility");assert!(left.is_empty(), "the stored value is emptied once moved");} else {- assert!(pref.is_err(), "an unreachable module fails closed: {pref:?}");+ assert!(+ pref.is_err(),+ "an unreachable module fails closed: {pref:?}"+ );assert_eq!(left.get("github"), Some(&stored));}}@@ -93,9 +96,11 @@ async fn a_legacy_pref_either_reaches_the_module_or_stays_stored() {async fn load_rejects_an_empty_toolkit_instead_of_answering_the_default() {let dir = tempfile::tempdir().unwrap();let config = config_in(&dir);- assert!(load(&crate::core::runtime::DispatchCtx::ambient(), &config, " ")- .await- .is_err());+ assert!(+ load(&crate::core::runtime::DispatchCtx::ambient(), &config, " ")+ .await+ .is_err()+ );}#[tokio::test]diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rsindex 73818ee955..2b30a7ea11 100644--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs@@ -66,7 +66,9 @@ pub(super) fn handle_get_user_scopes(%error,"[composio:scopes] pref unavailable");- return Err(format!("scope preference for `{toolkit}` is unavailable: {error}"));+ return Err(format!(+ "scope preference for `{toolkit}` is unavailable: {error}"+ ));}};tracing::debug!(diff --git a/crates/openhuman-core/src/integrations/composio/tools/scope_gate_tests.rs b/crates/openhuman-core/src/integrations/composio/tools/scope_gate_tests.rsindex 78d5442170..4cec242add 100644--- a/crates/openhuman-core/src/integrations/composio/tools/scope_gate_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/scope_gate_tests.rs@@ -234,6 +234,10 @@ impl Drop for RestoreInstalledStorage {/// backend then makes the module's next preference read fail (`Unavailable`),/// as a storage outage would.#[tokio::test]+#[allow(+ clippy::await_holding_lock,+ reason = "the storage-slot guard must cover the whole test; the runtime is current-thread"+)]async fn an_unreadable_preference_denies_at_every_gate() {use crate::integrations::composio::module_client::module_guard;let _serialised = module_guard().await;@@ -257,8 +261,12 @@ async fn an_unreadable_preference_denies_at_every_gate() {.expect("the module stores the pref while storage is installed");crate::storage::clear();- let read = crate::integrations::composio::ops::load_user_scope_pref(&ctx, &config, "gmail").await;- assert!(read.is_err(), "an unreadable pref is an error, not the default: {read:?}");+ let read =+ crate::integrations::composio::ops::load_user_scope_pref(&ctx, &config, "gmail").await;+ assert!(+ read.is_err(),+ "an unreadable pref is an error, not the default: {read:?}"+ );assert!(!crate::integrations::composio::flow_gate::flow_tool_allowed(&ctx,