Skip to content

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

fix(tests): update spawn_parallel_agents tests for policy changes

Steven Enamakel1f2ec7d0594f
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_policy_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_policy_tests.rs
index f60618369b..1466cc8e58 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_policy_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_policy_tests.rs
@@ -194,8 +194,7 @@ async fn collects_immediate_task_validation_failures() {
tool.execute(json!({
"tasks": [
{ "agent_id": " ", "prompt": "missing agent", "ownership": "files: none" },
- { "agent_id": "__missing_agent__", "prompt": "unknown agent" },
- { "agent_id": "integrations_agent", "prompt": "needs toolkit" }
+ { "agent_id": "__missing_agent__", "prompt": "unknown agent" }
]
}))
.await
@@ -205,8 +204,8 @@ async fn collects_immediate_task_validation_failures() {
assert!(!result.is_error, "{}", result.output());
let body: serde_json::Value = serde_json::from_str(&result.output()).expect("json output");
- assert_eq!(body["parallel_agents"]["total"], 3);
- assert_eq!(body["parallel_agents"]["failed"], 3);
+ assert_eq!(body["parallel_agents"]["total"], 2);
+ assert_eq!(body["parallel_agents"]["failed"], 2);
let errors = body["parallel_agents"]["results"]
.as_array()
.expect("results")
@@ -219,9 +218,6 @@ async fn collects_immediate_task_validation_failures() {
assert!(errors
.iter()
.any(|error| error.contains("unknown agent_id")));
- assert!(errors
- .iter()
- .any(|error| error.contains("requires toolkit")));
}
#[test]
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs
index 298395b25d..255bdb18f9 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs
@@ -119,7 +119,6 @@ fn parent_context(max_parallel_tools: usize) -> ParentExecutionContext {
allowed_subagent_ids: [
"researcher".to_string(),
"critic".to_string(),
- "integrations_agent".to_string(),
]
.into_iter()
.collect(),