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
test(cron): align cron tests with updated patch and run types
Steven Enamakel8a85d5dc4f5b
diff --git a/crates/openhuman-core/src/cron/bus_host_tests.rs b/crates/openhuman-core/src/cron/bus_host_tests.rsindex 4818f0ea88..7ef76e94e2 100644--- a/crates/openhuman-core/src/cron/bus_host_tests.rs+++ b/crates/openhuman-core/src/cron/bus_host_tests.rs@@ -588,7 +588,7 @@ async fn captured_deleted_flow_job_publishes_trigger_and_completion_identity() {&config,&job.id,tinyflows_bus::schedule::types::CronJobPatch {- name: Some(Some("captured flow name".into())),+ name: Some("captured flow name".into()),..Default::default()},)diff --git a/crates/openhuman-core/src/cron/ops_delivery_tests.rs b/crates/openhuman-core/src/cron/ops_delivery_tests.rsindex ea1629e2d8..4d8a51a9ca 100644--- a/crates/openhuman-core/src/cron/ops_delivery_tests.rs+++ b/crates/openhuman-core/src/cron/ops_delivery_tests.rs@@ -264,7 +264,7 @@ async fn cancelled_waiting_caller_keeps_manual_run_callback_served_until_complet};tokio::time::timeout(std::time::Duration::from_secs(3), async {loop {- let result: Result<(), _> = probe+ let result: std::result::Result<(), _> = probe.call(callbacks::FAILED, (&job, "lifecycle-probe", &failed)).await;if result.is_err() {@@ -322,6 +322,9 @@ async fn cancelled_waiting_caller_keeps_manual_run_callback_served_until_complet"cancelling the waiter must not orphan the module worker before terminal projection");let runs = cron::list_runs(&config, &job.id, 10).unwrap();- assert!(runs.iter().any(|run| run.run_id == first_run_id && run.status == "ok"));- assert!(runs.iter().any(|run| run.run_id == second_run_id && run.status == "ok"));+ assert_eq!(runs.len(), 2);+ assert!(+ runs.iter().all(|run| run.status == "ok"),+ "the cancelled caller's worker must not leave a queued occurrence behind: {runs:?}"+ );}