Skip to content

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

fix(test): correct schema count assertion in controller test

Steven Enamakel5cb59352f4c1
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rs
index 06ff09a122..a20621b0fb 100644
--- a/crates/openhuman-core/src/core/all_tests.rs
+++ b/crates/openhuman-core/src/core/all_tests.rs
@@ -206,10 +206,9 @@ fn all_controller_schemas_matches_registered_count() {
.collect();
let schemas = visible
.iter()
- .filter(|g| !g.controller.schema.function.is_empty())
- .count();
+ .filter(|g| !g.controller.schema.function.is_empty());
let controllers = visible.len();
- assert_eq!(schemas, controllers);
+ assert_eq!(schemas.count(), controllers);
}
/// With the `voice` feature on (the default), the voice + audio_toolkit