Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(cron): replace deprecated timestamp_millis_opt with from_timestamp_millis

Steven Enamakel244d2942ddcb
diff --git a/crates/openhuman-core/src/cron/store_tests.rs b/crates/openhuman-core/src/cron/store_tests.rs
index 567cbad1e6..2b8e54739c 100644
--- a/crates/openhuman-core/src/cron/store_tests.rs
+++ b/crates/openhuman-core/src/cron/store_tests.rs
@@ -259,7 +259,7 @@ fn assert_force_next_run_updates_collection(collection: &str, other_collection:
})
.unwrap();
- let next = Utc.timestamp_millis_opt(456).single().unwrap();
+ let next = chrono::DateTime::<Utc>::from_timestamp_millis(456).unwrap();
force_next_run_for_test(&config, "seeded-job", next).unwrap();
let (updated, other, collections) = crate::storage::block_on_anyhow(async {