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: update cron policy failure helper to current storage types
Steven Enamakeld3a194a1917f
diff --git a/tests/support/cron_policy_failure.rs b/tests/support/cron_policy_failure.rsindex 827678fd6a..8bf4be5e56 100644--- a/tests/support/cron_policy_failure.rs+++ b/tests/support/cron_policy_failure.rs@@ -68,7 +68,7 @@ impl StorageBackend for Backend {Ok(Storage::new(Arc::new(Documents {inner: Arc::clone(inner.documents()),- scope: scope.to_string(),+ scope: scope.as_str().to_string(),faults: Arc::clone(&self.faults),}),Arc::clone(inner.streams()),@@ -226,7 +226,7 @@ fn next_run_of(config: &Config, job_id: &str) -> chrono::DateTime<chrono::Utc> {/// Writes `policy` as the raw `policy` field of `job_id`'s document, bypassing/// the store's own validation.-async fn put_raw_policy(docs: &ScopedStorage, job_id: &str, policy: serde_json::Value) {+async fn put_raw_policy(docs: &Storage, job_id: &str, policy: serde_json::Value) {let mut stored = docs.documents().get(JOBS, job_id).await.unwrap().unwrap();stored.doc["policy"] = policy;docs.documents()