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
chore: reformat test code and reorder module declarations
Steven Enamakelea9925bb7b57
diff --git a/crates/openhuman-core/src/agent/artifacts/store_tests.rs b/crates/openhuman-core/src/agent/artifacts/store_tests.rsindex c414ca695c..a96a1e95cb 100644--- a/crates/openhuman-core/src/agent/artifacts/store_tests.rs+++ b/crates/openhuman-core/src/agent/artifacts/store_tests.rs@@ -440,14 +440,17 @@ async fn fail_artifact_fills_request_id_from_chat_context() {let deadline = std::time::Instant::now() + std::time::Duration::from_secs(2);loop {- let found = collector.snapshot().into_iter().find_map(|event| match event {- DomainEvent::ArtifactFailed {- artifact_id,- request_id,- ..- } if artifact_id == meta.id => Some(request_id),- _ => None,- });+ let found = collector+ .snapshot()+ .into_iter()+ .find_map(|event| match event {+ DomainEvent::ArtifactFailed {+ artifact_id,+ request_id,+ ..+ } if artifact_id == meta.id => Some(request_id),+ _ => None,+ });if let Some(request_id) = found {assert_eq!(request_id,diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rsindex 1bcc3b8c7c..63bb7c5881 100644--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rs@@ -1,8 +1,7 @@use super::*;use crate::inference::provider::factory::cloud_slug::{- openrouter_default_provider_options,- OPENROUTER_PROVIDER_SORT,+ openrouter_default_provider_options, OPENROUTER_PROVIDER_SORT,};#[test]diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rsindex cfbbb86d0f..d01b68e17c 100644--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs@@ -592,4 +592,3 @@ fn try_create_cloud_slug_flips_openai_but_declines_non_cloud() {unconfigured.chat_provider = Some("deepseek:deepseek-chat".to_string());assert!(try_create_cloud_slug_chat_model("chat", &unconfigured).is_none());}-diff --git a/crates/openhuman-core/src/inference/provider/factory_tests.rs b/crates/openhuman-core/src/inference/provider/factory_tests.rsindex 735d072d8e..f55e176cd9 100644--- a/crates/openhuman-core/src/inference/provider/factory_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_tests.rs@@ -182,10 +182,10 @@ fn only_library_hosts_are_exempt_from_app_login() {}}-#[path = "factory_crate_native_tests.rs"]-mod crate_native_tests;#[path = "factory_crate_native_diagnostics_tests.rs"]mod crate_native_diagnostics_tests;+#[path = "factory_crate_native_tests.rs"]+mod crate_native_tests;#[path = "factory_egress_fallback_tests.rs"]mod egress_fallback_tests;#[path = "factory_route_resolution_tests.rs"]diff --git a/crates/openhuman-core/src/security/approval/gate_tests.rs b/crates/openhuman-core/src/security/approval/gate_tests.rsindex f58f8f7422..13262f6c91 100644--- a/crates/openhuman-core/src/security/approval/gate_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_tests.rs@@ -226,7 +226,7 @@ async fn find_approval_decided(mod core_flow_tests;#[path = "gate_origin_intercept_tests.rs"]mod origin_intercept_tests;-#[path = "gate_ttl_and_triage_tests.rs"]-mod ttl_and_triage_tests;#[path = "gate_triage_tests.rs"]mod triage_tests;+#[path = "gate_ttl_and_triage_tests.rs"]+mod ttl_and_triage_tests;diff --git a/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rs b/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rsindex 53f64dfb42..3ae58342e4 100644--- a/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rs@@ -420,4 +420,3 @@ async fn copilot_streaming_park_persists_the_clamped_expiry() {let outcome = handle.await.unwrap();assert!(matches!(outcome, GateOutcome::Allow));}-diff --git a/crates/openhuman-core/src/web_chat/event_bus_tests.rs b/crates/openhuman-core/src/web_chat/event_bus_tests.rsindex 38084eae6f..362b60f997 100644--- a/crates/openhuman-core/src/web_chat/event_bus_tests.rs+++ b/crates/openhuman-core/src/web_chat/event_bus_tests.rs@@ -535,7 +535,9 @@ async fn publish_web_channel_event_stamps_ts_when_unset() {let ev = find_agent_web_event(&mut web_rx, "ts_stamp_probe", "thread-ts-stamp-probe").await;let after = crate::web_chat::progress_bridge::unix_epoch_ms();- let ts = ev.ts.expect("publish_web_channel_event must stamp ts when unset");+ let ts = ev+ .ts+ .expect("publish_web_channel_event must stamp ts when unset");assert!(ts >= before && ts <= after,"stamped ts ({ts}) must fall within [{before}, {after}]"