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): cover scheduler tick and job dispatch
Steven Enamakel1a4d60095a02
diff --git a/crates/openhuman-core/src/cron/scheduler_tests.rs b/crates/openhuman-core/src/cron/scheduler_tests.rsindex 788a04c023..dbed91b5b9 100644--- a/crates/openhuman-core/src/cron/scheduler_tests.rs+++ b/crates/openhuman-core/src/cron/scheduler_tests.rs@@ -337,7 +337,7 @@ async fn a_pipeline_reports_its_last_stage_rather_than_pipefail() {}#[tokio::test]-async fn without_a_backend_an_agent_needs_its_own_job_database() {+async fn without_a_backend_an_agent_needs_its_own_job_store_or_a_legacy_jobs_db() {// The lib test binary installs no storage backend into the process slot.if crate::storage::installed().is_some() {return;@@ -350,4 +350,9 @@ async fn without_a_backend_an_agent_needs_its_own_job_database() {std::fs::create_dir_all(db.parent().unwrap()).unwrap();std::fs::write(&db, b"").unwrap();assert!(agent_jobs_may_exist(&config));+ // The `jobs.db` tinyflows wrote counts too: the first call imports it.+ std::fs::remove_file(&db).unwrap();+ assert!(!agent_jobs_may_exist(&config));+ std::fs::write(crate::cron::store::legacy_db_path(&config), b"").unwrap();+ assert!(agent_jobs_may_exist(&config));}