Skip to content

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

chore: files changed crates/openhuman-core/src/memory/tool_budget_tests.rs

Steven Enamakel4d3cea14ad1f
diff --git a/crates/openhuman-core/src/memory/tool_budget_tests.rs b/crates/openhuman-core/src/memory/tool_budget_tests.rs
index 459a8d7be4..dd8df01920 100644
--- a/crates/openhuman-core/src/memory/tool_budget_tests.rs
+++ b/crates/openhuman-core/src/memory/tool_budget_tests.rs
@@ -179,9 +179,9 @@ async fn an_outstanding_memory_call_survives_other_runs_and_keeps_its_timeout_ci
async fn full_tracking_refuses_new_work_until_an_active_reservation_is_released() {
let budget = budget();
let mut pending = Vec::new();
- for i in 0..128 {
- let mut call =
- Box::pin(budget.run(Some(&format!("active-{i}")), std::future::pending::<()>()));
+ let run_ids: Vec<String> = (0..128).map(|i| format!("active-{i}")).collect();
+ for run_id in &run_ids {
+ let mut call = Box::pin(budget.run(Some(run_id), std::future::pending::<()>()));
assert!(futures::poll!(call.as_mut()).is_pending());
pending.push(call);
}