Skip to content

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

test(cron): assert next_run fields absent when not forced

Steven Enamakel11cce0ac970a
diff --git a/crates/openhuman-core/src/cron/store_tests.rs b/crates/openhuman-core/src/cron/store_tests.rs
index 2f71fa4c75..9c3b40f8cf 100644
--- a/crates/openhuman-core/src/cron/store_tests.rs
+++ b/crates/openhuman-core/src/cron/store_tests.rs
@@ -300,6 +300,9 @@ fn assert_force_next_run_updates_collection(
456
);
assert_eq!(updated["next_run_ns"], json!(456_000_000));
+ } else {
+ assert!(updated.get("next_run").is_none());
+ assert!(updated.get("next_run_ns").is_none());
}
assert!(
other.is_none(),