Skip to content

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

test(core): update approval controller tests

Steven Enamakel562401a92d26
diff --git a/crates/openhuman-core/src/core/all_approval_controller_tests.rs b/crates/openhuman-core/src/core/all_approval_controller_tests.rs
index b5000f7787..6e0438e398 100644
--- a/crates/openhuman-core/src/core/all_approval_controller_tests.rs
+++ b/crates/openhuman-core/src/core/all_approval_controller_tests.rs
@@ -66,12 +66,9 @@ fn raw_approval_security_registry_matches_its_independent_contract() {
[].as_slice(),
["flow_id", "tool_names"].as_slice(),
]) {
+ let actual: Vec<_> = schema.inputs.iter().map(|field| field.name).collect();
assert_eq!(
- schema
- .inputs
- .iter()
- .map(|field| field.name)
- .collect::<Vec<_>>(),
+ actual.as_slice(),
expected,
"{}.{} input order",
schema.namespace,
@@ -157,7 +154,7 @@ fn raw_approval_security_registry_matches_its_independent_contract() {
entries[2]
.decode_params(Map::from_iter([
("request_id".into(), json!("id")),
- ("decision".into(), json!("unsupported")),
+ ("decision".into(), json!(1)),
]))
.expect_err("bound schema decoder enforces string wire types");
entries[4]