Skip to content

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

chore: refactor(config: Update job definition constant*

Steven Enamakelfe7d6dac9d25
diff --git a/tests/support/cron_policy_failure.rs b/tests/support/cron_policy_failure.rs
index 8270fc50ca..4d3c808b73 100644
--- a/tests/support/cron_policy_failure.rs
+++ b/tests/support/cron_policy_failure.rs
@@ -38,8 +38,9 @@ mod policy {
set_policy(config, job_id, JobPolicy::default())
}
}
-/// A job's policy is a field of its job document.
-const JOBS: &str = "cron_jobs";
+/// A job's policy is a field of its job document, in the schedule module's
+/// `cron.jobs` collection (`cron_jobs` is only the retired v1 source).
+const JOBS: &str = "cron.jobs";
const BACKEND_DETAIL: &str = "mongodb://policy-user:secret@backend/private-payload";
#[derive(Debug, Default)]