Skip to content

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

test(orchestration): use contains_key for router absence check

Steven Enamakel9d4b74fb9930
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs
index 1c8cf5d530..f622fe8832 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs
@@ -560,7 +560,7 @@ fn release_all_closes_every_router_and_the_log_stays_replayable() {
assert!(release_all() >= 1);
assert!(
- state().routers.get(w).is_none(),
+ !state().routers.contains_key(w),
"the router (and its log handle) is dropped"
);
assert!(