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 scheduler tests for job execution and rescheduling
Steven Enamakel16a64c2149b3
diff --git a/crates/openhuman-core/src/cron/scheduler_tests.rs b/crates/openhuman-core/src/cron/scheduler_tests.rsindex dbed91b5b9..bf8a7ecc1b 100644--- a/crates/openhuman-core/src/cron/scheduler_tests.rs+++ b/crates/openhuman-core/src/cron/scheduler_tests.rs@@ -171,10 +171,8 @@ async fn retryable_shell_failure_consumes_the_whole_retry_budget() {let counter = tmp.path().join("retryable-attempts.log");let job = test_job(&counting_failure_command(&counter));- let security =- SecurityPolicy::from_config(&config.autonomy, &config.workspace_dir, &config.action_dir);- let (success, output) = execute_job_with_retry(&config, &security, &job).await;+ let (success, output) = execute_job_now(&config, &job, "test-run").await;assert!(!success,@@ -232,7 +230,7 @@ async fn security_policy_block_halts_without_spending_the_retry_budget() {);let started = std::time::Instant::now();- let (success, output) = execute_job_with_retry(&config, &security, &job).await;+ let (success, output) = execute_job_now(&config, &job, "test-run").await;let elapsed = started.elapsed();assert!(!success, "a blocked job cannot succeed; got {output}");