Skip to content

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

style: format test files with rustfmt

Steven Enamakel0986601dc697
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
index b7a2f46e23..acce3bd477 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
@@ -5,7 +5,9 @@ use std::sync::Arc;
use tinyagents_runtime::ToolSnapshot;
use tinytools::ToolSpec;
-fn synthesized_tool_names(prelude: &super::OpenHumanTurnPrelude) -> std::collections::HashSet<String> {
+fn synthesized_tool_names(
+ prelude: &super::OpenHumanTurnPrelude,
+) -> std::collections::HashSet<String> {
prelude
.tool_surface
.lock()
diff --git a/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs b/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs
index 249148d8de..82f5618815 100644
--- a/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs
@@ -253,8 +253,7 @@ fn is_local_provider_unreachable_failure_matches_raw_no_models_loaded_body() {
#[test]
fn is_local_provider_unreachable_failure_checks_output_when_raw_is_generic() {
- let output =
- "Your local inference server (e.g. LM Studio) is running but has no model loaded. \
+ let output = "Your local inference server (e.g. LM Studio) is running but has no model loaded. \
Load a model, then try again.";
assert!(
is_local_provider_unreachable_failure(
@@ -441,11 +440,13 @@ async fn scheduler_flow_runs_active_hours_job_and_reschedules_inside_window() {
let stored = cron::get_job(&config, &job.id).unwrap();
assert_eq!(stored.last_status.as_deref(), Some("ok"));
- assert!(stored
- .last_output
- .as_deref()
- .unwrap_or_default()
- .contains("active-hours-fired"));
+ assert!(
+ stored
+ .last_output
+ .as_deref()
+ .unwrap_or_default()
+ .contains("active-hours-fired")
+ );
assert_eq!(
stored.schedule,
Schedule::Cron {
@@ -552,15 +553,17 @@ async fn deliver_if_configured_skips_non_announce_mode() {
let job = test_job("echo ok");
// Default delivery mode is not "announce", so nothing is published.
- assert!(deliver_if_configured(
- &crate::core::runtime::DispatchCtx::ambient(),
- &config,
- &job,
- "x",
- true
- )
- .await
- .is_ok());
+ assert!(
+ deliver_if_configured(
+ &crate::core::runtime::DispatchCtx::ambient(),
+ &config,
+ &job,
+ "x",
+ true
+ )
+ .await
+ .is_ok()
+ );
}
#[tokio::test]
@@ -617,15 +620,17 @@ async fn deliver_if_configured_publishes_event_for_announce_mode() {
assert_eq!(received.load(Ordering::SeqCst), 1);
// Also verify the function itself succeeds.
- assert!(deliver_if_configured(
- &crate::core::runtime::DispatchCtx::ambient(),
- &config,
- &job,
- "hello",
- true
- )
- .await
- .is_ok());
+ assert!(
+ deliver_if_configured(
+ &crate::core::runtime::DispatchCtx::ambient(),
+ &config,
+ &job,
+ "hello",
+ true
+ )
+ .await
+ .is_ok()
+ );
}
#[test]
diff --git a/crates/openhuman-core/src/threads/transcript_host_tests.rs b/crates/openhuman-core/src/threads/transcript_host_tests.rs
index 5d21488060..602c60c000 100644
--- a/crates/openhuman-core/src/threads/transcript_host_tests.rs
+++ b/crates/openhuman-core/src/threads/transcript_host_tests.rs
@@ -10,10 +10,10 @@ use std::sync::Arc;
use crate::agent::session_store::splice_fixture_tests::memory_locator;
use tempfile::TempDir;
+use tinyagents_session::transcript::TranscriptMessage;
use tinyagents_session::transcript::view::{
- project_records, project_thread_in, DisplayItem, ToolCallStatus,
+ DisplayItem, ToolCallStatus, project_records, project_thread_in,
};
-use tinyagents_session::transcript::TranscriptMessage;
use tinyagents_session::transcript::{self, TranscriptLocator};
/// A thread's display records, read back through the store port.