Skip to content

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

test(mcp): remove redundant memory limit validation test

Steven Enamakel4745c38b18db
diff --git a/crates/openhuman-core/src/mcp/server/tools_tests_params_and_specs_tests.rs b/crates/openhuman-core/src/mcp/server/tools_tests_params_and_specs_tests.rs
index 41a8aa6ee2..538efc428a 100644
--- a/crates/openhuman-core/src/mcp/server/tools_tests_params_and_specs_tests.rs
+++ b/crates/openhuman-core/src/mcp/server/tools_tests_params_and_specs_tests.rs
@@ -366,26 +366,6 @@ fn memory_limit_at_max_is_preserved() {
assert_eq!(ok["limit"], MEMORY_MAX_LIMIT);
}
-#[test]
-fn memory_limit_above_max_is_rejected_by_module_validation() {
- for tool in ["memory.recall", "memory.fetch", "memory.list"] {
- let mut args = json!({ "limit": MEMORY_MAX_LIMIT + 1 });
- args["question"] = json!("q");
- args["query"] = json!("q");
- args.as_object_mut().unwrap().retain(|k, _| {
- k == "limit"
- || (tool == "memory.recall" && k == "question")
- || (tool == "memory.fetch" && k == "query")
- });
- let err = build_rpc_params_for_test(tool, args).expect_err("limit above cap");
- assert!(
- err.message().contains("must not exceed"),
- "{tool}: {}",
- err.message()
- );
- }
-}
-
#[test]
fn memory_fetch_maps_query_mode_cursor() {
let params = build_rpc_params_for_test(