Skip to content

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

test(cron): add channel delivery test module

Steven Enamakela1922e386e98
diff --git a/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs b/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs
index 758d35177d..c130ac0035 100644
--- a/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs
+++ b/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs
@@ -506,3 +506,7 @@ async fn deliver_to_web_thread(
#[cfg(test)]
#[path = "origin_delivery_tests.rs"]
mod tests;
+
+#[cfg(test)]
+#[path = "origin_delivery_channel_tests.rs"]
+mod channel_tests;
diff --git a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
index ed632980c4..b8291b648b 100644
--- a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
@@ -8,7 +8,7 @@ use {
tinyflows_bus::schedule::types::Schedule, tinyflows_bus::schedule::types::SessionTarget,
};
-fn config(tmp: &tempfile::TempDir) -> Config {
+pub(super) fn config(tmp: &tempfile::TempDir) -> Config {
let config = Config {
workspace_dir: tmp.path().join("workspace"),
action_dir: tmp.path().join("workspace"),
@@ -19,7 +19,7 @@ fn config(tmp: &tempfile::TempDir) -> Config {
config
}
-fn job(origin: Option<JobOrigin>) -> CronJob {
+pub(super) fn job(origin: Option<JobOrigin>) -> CronJob {
CronJob {
claim_generation: 0,
policy: Default::default(),