The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(cron): move test module declarations to end of files
Steven Enamakeld63235a282ac
diff --git a/crates/openhuman-core/src/cron/bus_host_tests.rs b/crates/openhuman-core/src/cron/bus_host_tests.rsindex 2a65751b06..ae7654ba0a 100644--- a/crates/openhuman-core/src/cron/bus_host_tests.rs+++ b/crates/openhuman-core/src/cron/bus_host_tests.rs@@ -1,7 +1,7 @@-//! The callback adapter, driven the way the module drives it: over the bus, on-//! the contract's `ScheduleHost` interface, against the real (linked) module.-use super::*;+// The callback adapter, driven the way the module drives it: over the bus, on+// the contract's `ScheduleHost` interface, against the real (linked) module.+use crate::cron::handlers::{kind_handler, register_kind, JobKindHandler, JobOutcome, JobRunContext,};diff --git a/crates/openhuman-core/src/cron/limits_tests.rs b/crates/openhuman-core/src/cron/limits_tests.rsindex 2f5cb0b031..970756bb16 100644--- a/crates/openhuman-core/src/cron/limits_tests.rs+++ b/crates/openhuman-core/src/cron/limits_tests.rs@@ -1,6 +1,6 @@-//! The agent-only limits: what is refused at add, update and run.-use super::*;+// The agent-only limits: what is refused at add, update and run.+use crate::cron::job_builder::{create_agent_job, AgentJobInput};use crate::cron::limits;use crate::cron::{add_job, add_shell_job, get_job, update_job, JobOrigin};diff --git a/crates/openhuman-core/src/cron/scheduler/run_delivery.rs b/crates/openhuman-core/src/cron/scheduler/run_delivery.rsindex afe2427f29..dcf1d0ed54 100644--- a/crates/openhuman-core/src/cron/scheduler/run_delivery.rs+++ b/crates/openhuman-core/src/cron/scheduler/run_delivery.rs@@ -108,13 +108,6 @@ fn stand_in(flow_id: &str) -> CronJob {}}-#[cfg(test)]-#[path = "run_delivery_tests.rs"]-pub(crate) mod tests;--#[cfg(test)]-pub(crate) use tests::stand_in_for_test;-/// Fire the `flow` row bound to `flow_id` through the registered `flow`/// handler.pub(crate) async fn trigger(binding: &Binding, flow_id: &str, run_id: &str) -> Attempt {@@ -169,3 +162,10 @@ pub(crate) async fn trigger(binding: &Binding, flow_id: &str, run_id: &str) -> A}).await}++#[cfg(test)]+#[path = "run_delivery_tests.rs"]+pub(crate) mod tests;++#[cfg(test)]+pub(crate) use tests::stand_in_for_test;