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(orchestration): drop unused mut in delivery slot test
Steven Enamakelda4c3556c61f
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rsindex 2cdeb44cbb..7d472d5cf7 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_slots_tests.rs@@ -105,14 +105,23 @@ async fn a_delivery_in_flight_for_one_profile_does_not_take_anothers_slot() {router_for_workspace(p.ws_b.path()),);- let held = in_scope(&p.alice, || DeliverySlot::claim(&p.thread, router_a.clone()))- .expect("alice claims her slot");+ let held = in_scope(&p.alice, || {+ DeliverySlot::claim(&p.thread, router_a.clone())+ })+ .expect("alice claims her slot");assert!(- in_scope(&p.alice, || DeliverySlot::claim(&p.thread, router_a.clone())).is_none(),+ in_scope(&p.alice, || DeliverySlot::claim(+ &p.thread,+ router_a.clone()+ ))+ .is_none(),"one delivery per thread within a profile");let bob_slot = in_scope(&p.bob, || DeliverySlot::claim(&p.thread, router_b.clone()));- assert!(bob_slot.is_some(), "alice's delivery does not hold bob's slot");+ assert!(+ bob_slot.is_some(),+ "alice's delivery does not hold bob's slot"+ );drop((held, bob_slot));// End to end: while Alice's delivery turn is in flight, Bob's runs and@@ -133,7 +142,7 @@ async fn a_delivery_in_flight_for_one_profile_does_not_take_anothers_slot() {let alice_deliver = move |thread_a: String, notice: String| {let bob = Arc::clone(&bob);let (thread, router_bob, bob_log) = (thread.clone(), router_bob.clone(), bob_log.clone());- let mut alice_log = log("alice");+ let alice_log = log("alice");async move {let retry = CoreContext::scope(bob,