Skip to content

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

chore(tests): reorder imports and log controlled turn error

Steven Enamakelcae62944bdf7
diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rs
index 49ce565b44..b83695f387 100644
--- a/crates/openhuman-embed/tests/common/mod.rs
+++ b/crates/openhuman-embed/tests/common/mod.rs
@@ -258,7 +258,7 @@ pub struct PointedInference;
impl PointedInference {
pub fn install(base_url: &str) {
use openhuman_embed::__host::inference_registry::{
- ChatModelEntry, ChatModelRequest, PROVIDER_OPENHUMAN, register_chat_model,
+ register_chat_model, ChatModelEntry, ChatModelRequest, PROVIDER_OPENHUMAN,
};
use tinyinference_llm::providers::openai::OpenAiModel;
diff --git a/crates/openhuman-embed/tests/dispatch_admission_turn.rs b/crates/openhuman-embed/tests/dispatch_admission_turn.rs
index 0910ecbdbb..7b6ddddd4e 100644
--- a/crates/openhuman-embed/tests/dispatch_admission_turn.rs
+++ b/crates/openhuman-embed/tests/dispatch_admission_turn.rs
@@ -2,8 +2,8 @@
mod common;
-use std::sync::Arc;
use std::sync::atomic::{AtomicUsize, Ordering};
+use std::sync::Arc;
use async_trait::async_trait;
use openhuman_embed::budget::{
@@ -112,6 +112,7 @@ fn repair_refusal_is_typed_and_does_not_reach_fallback_or_emit_a_phantom_dispatc
.await
.expect_err("the repair call is refused by host policy");
+ eprintln!("controlled turn error: {error:?}");
match error {
CoreError::DispatchAdmission { source, usage, .. } => {
assert_eq!(source.reason(), DispatchRefusalReason::CallLimit);