Skip to content

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

test(cron): align limit fixtures with the raised minimum interval

Steven Enamakelb9422b99eafc
diff --git a/crates/openhuman-core/src/cron/limits_tests.rs b/crates/openhuman-core/src/cron/limits_tests.rs
index a01d031ac1..0554ef0668 100644
--- a/crates/openhuman-core/src/cron/limits_tests.rs
+++ b/crates/openhuman-core/src/cron/limits_tests.rs
@@ -141,8 +141,9 @@ fn stored_rows_that_break_the_limits_are_refused_at_run() {
add_shell_job(&config, None, Schedule::Every { every_ms: 600_000 }, "echo").unwrap();
let announce =
create_agent_job(&config, input(600_000, Some(delivery("announce"))), None).unwrap();
- let fast = create_agent_job(&config, input(1_000, None), None).unwrap();
+ let fast = create_agent_job(&config, input(600_000, None), None).unwrap();
config.cron.agent_jobs_only = true;
+ config.cron.min_interval_secs = 1_200;
for job in [shell, announce, fast] {
assert!(
limits::check_run(&config, &job).is_err(),
@@ -150,7 +151,7 @@ fn stored_rows_that_break_the_limits_are_refused_at_run() {
job.job_type
);
}
- let ok = create_agent_job(&config, input(600_000, None), origin()).unwrap();
+ let ok = create_agent_job(&config, input(1_200_000, None), origin()).unwrap();
limits::check_run(&config, &ok).unwrap();
}