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): read a migrated job's creation time from its body
M3gA-Minda95c8ea68a87
diff --git a/crates/openhuman-core/src/cron/documents_port_tests.rs b/crates/openhuman-core/src/cron/documents_port_tests.rsindex e0202d7494..6d5016a0fe 100644--- a/crates/openhuman-core/src/cron/documents_port_tests.rs+++ b/crates/openhuman-core/src/cron/documents_port_tests.rs@@ -130,8 +130,12 @@ async fn schedule_store_migration_moves_legacy_jobs_runs_and_counter_before_readassert_eq!(runs.len(), 1);assert_eq!(runs[0].output.as_deref(), Some("legacy output"));+ // Schedule schema v2 keeps a job's creation time in its body+ // (`created_ms`), which every read prefers; the record's own metadata time+ // is the migration's write.let migrated_job = docs.get("cron.jobs", "legacy-job").await.unwrap().unwrap();- assert_eq!(migrated_job.meta.created_ms, 1772600767123_i64);+ assert_eq!(migrated_job.doc["created_ms"], 1772600767123_i64);+ assert_eq!(listed[0].created_at.timestamp_millis(), 1772600767123_i64);for (collection, id) in [("cron_jobs", "legacy-job"),("cron_runs", "00000000000000000007"),