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): add coverage for cron operation edge cases
Steven Enamakel612e674b2ac2
diff --git a/crates/openhuman-core/src/cron/ops_tests.rs b/crates/openhuman-core/src/cron/ops_tests.rsindex 4da5385089..f25b49be45 100644--- a/crates/openhuman-core/src/cron/ops_tests.rs+++ b/crates/openhuman-core/src/cron/ops_tests.rs@@ -232,7 +232,11 @@ fn add_once_propagates_parse_delay_errors() {fn add_once_at_stores_exact_timestamp() {let tmp = TempDir::new().unwrap();let config = test_config(&tmp);- let when = chrono::Utc::now() + chrono::Duration::hours(1);+ // The store keeps instants as epoch milliseconds.+ let when = chrono::DateTime::from_timestamp_millis(+ (chrono::Utc::now() + chrono::Duration::hours(1)).timestamp_millis(),+ )+ .unwrap();let job = add_once_at(&config, when, "echo hi").unwrap();match job.schedule {Schedule::At { at } => assert_eq!(at, when),