Skip to content

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

chore(flows): remove obsolete migration test module

Steven Enamakeld516b8b5f7c6
diff --git a/crates/openhuman-core/src/flows/ops_migration_tests.rs b/crates/openhuman-core/src/flows/ops_migration_tests.rs
deleted file mode 100644
index 3d98312e29..0000000000
--- a/crates/openhuman-core/src/flows/ops_migration_tests.rs
+++ /dev/null
@@ -1,43 +0,0 @@
-use super::*;
-
-/// Regression cases for migration errors that identify the invalid collection
-/// member rather than reporting an ambiguous top-level deserialization error.
-#[test]
-fn migrate_and_deserialize_graph_names_the_member_in_inputs_agents_and_edges() {
- let bad_input = json!({ "inputs": [{ "type": "string" }] });
- let err = migrate_and_deserialize_graph(bad_input).expect_err("input without `name`");
- assert!(err.starts_with("inputs[0]: "), "got: {err}");
-
- let bad_agent = json!({ "agents": [{ "name": "no id" }] });
- let err = migrate_and_deserialize_graph(bad_agent).expect_err("agent without `id`");
- assert!(err.starts_with("agents[0]: "), "got: {err}");
-
- let bad_edge = json!({ "edges": [{ "from_port": "main" }] });
- let err = migrate_and_deserialize_graph(bad_edge).expect_err("edge without endpoints");
- assert!(err.starts_with("edges[0]: "), "got: {err}");
-}
-
-#[test]
-fn migrate_and_deserialize_graph_falls_back_when_no_member_is_at_fault() {
- let err = migrate_and_deserialize_graph(json!({
- "name": "valid",
- "nodes": "this is not an array"
- }))
- .expect_err("a non-array `nodes` must not deserialize");
-
- assert!(!err.contains("nodes["), "got: {err}");
- assert!(err.contains("invalid type"), "got: {err}");
-}
-
-#[test]
-fn migrate_and_deserialize_graph_reports_a_non_object_graph_without_inventing_a_location() {
- let err = migrate_and_deserialize_graph(json!("this is a string, not a workflow graph"))
- .expect_err("a non-object graph must not deserialize");
-
- assert!(!err.contains('['), "got: {err}");
- assert!(
- !err.contains(": invalid") || !err.starts_with("name"),
- "got: {err}"
- );
- assert!(err.contains("invalid type"), "got: {err}");
-}
diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rs
index 86b9b333c3..d4a2d15040 100644
--- a/crates/openhuman-core/src/flows/ops_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_tests.rs
@@ -714,9 +714,6 @@ mod engine_compatibility_tests;
mod inference_gate_tests;
#[path = "ops_migration_and_side_effect_tests.rs"]
mod migration_and_side_effect_tests;
-#[cfg(test)]
-#[path = "ops_migration_tests.rs"]
-mod migration_tests;
#[path = "ops_resume_checkpoint_tests.rs"]
mod resume_checkpoint_tests;
#[path = "ops_run_lifecycle_tests.rs"]