Skip to content

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

test(cron): compare per-agent job ids against a borrowed slice (#7032)

oxoxDevf97bdba0a913
diff --git a/crates/openhuman-core/src/cron/store_tests.rs b/crates/openhuman-core/src/cron/store_tests.rs
index a06ef38848..9bb577eecc 100644
--- a/crates/openhuman-core/src/cron/store_tests.rs
+++ b/crates/openhuman-core/src/cron/store_tests.rs
@@ -87,7 +87,7 @@ async fn an_agents_jobs_live_in_its_own_database() {
.collect::<Vec<_>>()
})
.await;
- assert_eq!(alpha_ids, [job.id.clone()]);
+ assert_eq!(alpha_ids, std::slice::from_ref(&job.id));
let beta_jobs = CoreContext::scope(agent_context(&config, "beta"), async {
list_jobs(&config).unwrap()
})