Skip to content

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

fix(tests): correct spawn_parallel_agents test to use proper agent ID

Steven Enamakel54549754e808
diff --git a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
index 0817ef645e..060f931e89 100644
--- a/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/spawn_parallel_agents_tests.rs
@@ -1225,8 +1225,9 @@ fn directory_ownership_contains_files_beneath_it() {
);
// A file beneath an already-claimed directory is rejected with the
- // contended ownership path and the rejecting agent's identity, rather
- // than silently overlapping the owner.
+ // rejected task's ownership claim, the rejecting agent's identity, and
+ // an error naming the contended owner directory — rather than silently
+ // overlapping the owner.
match &preflight[1] {
SpawnParallelTaskPreflight::Rejected(rejection) => {
assert_eq!(rejection.kind, ParallelTaskRejectionKind::RequiresIsolation);
@@ -1237,8 +1238,8 @@ fn directory_ownership_contains_files_beneath_it() {
"rejection must carry the rejected task's ownership claim"
);
assert!(
- rejection.error.contains("src/a.rs"),
- "rejection must name the contended path: {}",
+ rejection.error.contains("'src'"),
+ "rejection error must name the contended owner directory: {}",
rejection.error
);
}