Skip to content

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

test(web_chat): reformat turn lifecycle test imports and assertion

Steven Enamakel158a86b88868
diff --git a/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
index 5297858172..bef7f7c7c0 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
@@ -167,7 +167,10 @@ async fn a_refused_message_publishes_no_turn_events() {
async fn a_turn_with_an_unavailable_local_provider_ends_in_one_classified_chat_error() {
use crate::core::runtime::{context::CoreContext, DomainSet};
let _serial = FORCED_ERROR_TEST_LOCK.lock().await;
- use wiremock::{Mock, MockServer, ResponseTemplate, matchers::{method, path}};
+ use wiremock::{
+ matchers::{method, path},
+ Mock, MockServer, ResponseTemplate,
+ };
let server = MockServer::start().await;
// Ollama's model warm-up is part of provider setup. Keep it distinct from
@@ -244,7 +247,11 @@ async fn a_turn_with_an_unavailable_local_provider_ends_in_one_classified_chat_e
Some("chat_error.provider_unavailable"),
"{error:?}"
);
- assert_eq!(error.error_source.as_deref(), Some("provider_error"), "{error:?}");
+ assert_eq!(
+ error.error_source.as_deref(),
+ Some("provider_error"),
+ "{error:?}"
+ );
assert_eq!(error.error_retryable, Some(true), "{error:?}");
let runtime = crate::web_chat::runner::runtime(&ctx);