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
chore: files changed crates/openhuman-core/src/cron/scheduler_classifier_and_delivery_tests.rs
Steven Enamakel008bdab3ba96
diff --git a/crates/openhuman-core/src/cron/scheduler_classifier_and_delivery_tests.rs b/crates/openhuman-core/src/cron/scheduler_classifier_and_delivery_tests.rsindex 714a36b771..29b0516112 100644--- a/crates/openhuman-core/src/cron/scheduler_classifier_and_delivery_tests.rs+++ b/crates/openhuman-core/src/cron/scheduler_classifier_and_delivery_tests.rs@@ -68,6 +68,36 @@ async fn deliver_if_configured_announce_missing_target_errors() {assert!(result.is_err());}+#[tokio::test]+async fn announce_to_unavailable_channel_is_reported_as_failed() {+ let tmp = TempDir::new().unwrap();+ let config = test_config(&tmp).await;+ let missing_channel = format!("missing-{}", uuid::Uuid::new_v4());+ let mut job = test_job("echo ok");+ job.delivery = DeliveryConfig {+ mode: "announce".into(),+ channel: Some(missing_channel),+ to: Some("target".into()),+ best_effort: false,+ };++ let result = deliver_run(+ &crate::core::runtime::DispatchCtx::ambient(),+ &config,+ &job,+ "run-1",+ "hello",+ true,+ )+ .await;++ assert_eq!(+ result.unwrap(),+ DeliveryStatus::Failed,+ "an announce without a registered channel must not report Delivered"+ );+}+#[tokio::test]async fn deliver_if_configured_proactive_mode_succeeds() {let tmp = TempDir::new().unwrap();