Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: tidy import order and formatting in tests

Steven Enamakel9a603fa131b4
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_fetch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_fetch_tests.rs
index 17bfe1ee78..f7b12bba6c 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_fetch_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_fetch_tests.rs
@@ -239,4 +239,3 @@ fn web_fetch_failure_scope_is_the_host_not_the_page() {
scope("web_fetch", &fetch_args("https://other.test/a"))
);
}
-
diff --git a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs
index 49d1ea8768..c1fd2392c4 100644
--- a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs
@@ -30,8 +30,8 @@ use openhuman_core::security::approval::{
};
use openhuman_core::security::{live_policy, SecurityPolicy};
use openhuman_core::tools::registry::{registry_entries, registry_entries_for_config};
-use tinytools::registry::denials;
use openhuman_rpc::server::build_core_http_router;
+use tinytools::registry::denials;
const TEST_RPC_TOKEN: &str = "tool-registry-approval-raw-e2e-token";
@@ -54,7 +54,8 @@ fn env_lock() -> tokio::sync::MutexGuard<'static, ()> {
async fn env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
ENV_LOCK
.get_or_init(|| tokio::sync::Mutex::new(()))
- .lock().await
+ .lock()
+ .await
}
fn ensure_rpc_auth() {
@@ -502,10 +503,8 @@ async fn tool_registry_diagnostics_reports_config_and_audit_store_failures() {
workspace_dir: workspace_file,
..Config::default()
};
- let diagnostics = openhuman_core::tools::registry::ops::diagnostics_for_config(
- &broken_audit_config,
- )
- .await;
+ let diagnostics =
+ openhuman_core::tools::registry::ops::diagnostics_for_config(&broken_audit_config).await;
assert!(diagnostics.value.mcp_write_audit.enabled);
assert_eq!(diagnostics.value.mcp_write_audit.recent_rows, None);
assert!(diagnostics