Skip to content

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

test(security): remove redundant read_required parsing test

Steven Enamakel15d3594d1e2a
diff --git a/crates/openhuman-core/src/security/encryption/schemas_tests.rs b/crates/openhuman-core/src/security/encryption/schemas_tests.rs
index ca746fa715..6878e65de4 100644
--- a/crates/openhuman-core/src/security/encryption/schemas_tests.rs
+++ b/crates/openhuman-core/src/security/encryption/schemas_tests.rs
@@ -49,21 +49,6 @@ pub(super) fn parameter_contracts() -> Vec<ControllerParamContract> {
]
}
-#[test]
-fn read_required_parses_values_and_preserves_error_categories() {
- let mut m = Map::new();
- m.insert("key".into(), Value::String("value".into()));
- let result: String = read_required(&m, "key").unwrap();
- assert_eq!(result, "value");
- assert!(read_required::<String>(&Map::new(), "key")
- .unwrap_err()
- .contains("missing required param"));
- let wrong = Map::from_iter([("key".into(), Value::Bool(true))]);
- assert!(read_required::<String>(&wrong, "key")
- .unwrap_err()
- .contains("invalid"));
-}
-
#[test]
fn secret_parsers_preserve_strings_and_required_value_errors() {
use serde_json::json;