Skip to content

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

test: reorder imports in agent harness e2e tests

Steven Enamakeldd6e12df6283
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index a0daf641c4..98193ff53e 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -35,15 +35,15 @@ use std::time::Duration;
/// Prevents `ApprovalGate` from writing `./approval/approval.db` into the repo root.
static GATE_WORKSPACE: OnceLock<tempfile::TempDir> = OnceLock::new();
-use axum::http::{HeaderMap, StatusCode, Uri, header::AUTHORIZATION};
+use axum::http::{header::AUTHORIZATION, HeaderMap, StatusCode, Uri};
use axum::routing::{get, post};
use axum::{Json, Router};
use futures_util::StreamExt;
-use serde_json::{Value, json};
+use serde_json::{json, Value};
use tempfile::tempdir;
use openhuman_core::agent_registry::host_definition::AgentDefinitionRegistry;
-use openhuman_core::core::auth::{CORE_TOKEN_ENV_VAR, init_rpc_token};
+use openhuman_core::core::auth::{init_rpc_token, CORE_TOKEN_ENV_VAR};
use openhuman_rpc::server::build_core_http_router;
const TEST_RPC_TOKEN: &str = "json-rpc-e2e-local-token";
@@ -2753,8 +2753,8 @@ async fn streaming_tool_call_accumulation() {
use openhuman_core::progress::AgentProgress;
use std::sync::Mutex;
use streaming_support::{
- EchoTool, ScriptedProvider, agent_with_s, native_tool_response_s, text_response_s,
- workspace_s,
+ agent_with_s, native_tool_response_s, text_response_s, workspace_s, EchoTool,
+ ScriptedProvider,
};
use tinyinference_llm::model::{ModelProfile, ModelStreamItem};
use tinyinference_llm::tool::ToolDelta;