Skip to content

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

test: reorder imports and fix formatting in e2e tests

Steven Enamakel32d32cc30401
diff --git a/tests/in_process/agent_turn_overrides_e2e.rs b/tests/in_process/agent_turn_overrides_e2e.rs
index a30b481ce0..994960a4a7 100644
--- a/tests/in_process/agent_turn_overrides_e2e.rs
+++ b/tests/in_process/agent_turn_overrides_e2e.rs
@@ -34,9 +34,9 @@ use std::sync::{Arc, Mutex};
use tempfile::TempDir;
use openhuman_core::agent::goals::runtime as goal_runtime;
-use openhuman_core::agent_registry::host_definition::{AgentDefinition, AgentDefinitionRegistry};
use openhuman_core::agent::session_host::TurnOverrides;
use openhuman_core::agent::OpenHumanSessionHost;
+use openhuman_core::agent_registry::host_definition::{AgentDefinition, AgentDefinitionRegistry};
use openhuman_core::config::{AgentConfig, ContextConfig};
use tinyagents_definition::ToolScope;
use tinyinference_llm::message::Message;
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 2fe30ba538..5cc14a97b3 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -4112,13 +4112,12 @@ async fn json_rpc_agent_team_coordination_roundtrip() {
);
// Mark A done directly via the run ledger, then B claims fine.
- let task_a =
- openhuman_core::storage::sessions::with_ledger(&config.workspace_dir, |ledger| {
- let ledger_arg_0 = (&task_a_id).to_string();
- async move { ledger.get_agent_team_task(&ledger_arg_0).await }
- })
- .expect("get task A")
- .expect("task A present");
+ let task_a = openhuman_core::storage::sessions::with_ledger(&config.workspace_dir, |ledger| {
+ let ledger_arg_0 = (&task_a_id).to_string();
+ async move { ledger.get_agent_team_task(&ledger_arg_0).await }
+ })
+ .expect("get task A")
+ .expect("task A present");
openhuman_core::storage::sessions::with_ledger(&config.workspace_dir, |ledger| {
let ledger_arg_0 = tinyagents_session::run_ledger::AgentTeamTaskUpsert {
id: task_a.id.clone(),