Skip to content

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

chore(flows): remove unused dedup test helpers

Steven Enamakel764eaa96725e
diff --git a/crates/openhuman-core/src/flows/bus_tests.rs b/crates/openhuman-core/src/flows/bus_tests.rs
index be1a7349b0..a6c1069690 100644
--- a/crates/openhuman-core/src/flows/bus_tests.rs
+++ b/crates/openhuman-core/src/flows/bus_tests.rs
@@ -68,50 +68,6 @@ fn flow_with_trigger_config(id: &str, enabled: bool, trigger_config: Value) -> F
}
}
-fn dedup_node(id: &str) -> Node {
- Node {
- id: id.to_string(),
- kind: NodeKind::Dedup,
- type_version: 1,
- name: id.to_string(),
- config: json!({ "key": "=item.id" }),
- ports: Vec::new(),
- position: None,
- }
-}
-
-/// A saved flow with a `trigger` node plus one `dedup` node with id
-/// `dedup_id` — the minimal graph [`DedupCommitSubscriber::dedup_node_ids`]
-/// needs to find something to settle.
-fn flow_with_dedup_node(id: &str, dedup_id: &str) -> Flow {
- Flow {
- id: id.to_string(),
- name: id.to_string(),
- enabled: true,
- graph: WorkflowGraph {
- nodes: vec![trigger_node(json!({})), dedup_node(dedup_id)],
- ..Default::default()
- },
- created_at: "2026-01-01T00:00:00Z".to_string(),
- updated_at: "2026-01-01T00:00:00Z".to_string(),
- last_run_at: None,
- last_status: None,
- require_approval: false,
- }
-}
-
-// ── DedupCommitSubscriber ────────────────────────────────────────
-
-fn dedup_state_namespace(flow_id: &str) -> String {
- // MUST match `tinyflows::build_capabilities`'s `state_namespace`
- // (`crates/openhuman-core/src/flows/tinyflows/caps.rs`) — this test asserts the
- // subscriber collides with the SAME keys the engine's `dedup` node
- // itself reads/writes, not just "some" namespace.
- format!("flow:{flow_id}")
-}
-
-#[path = "bus_dedup_commit_lock_tests.rs"]
-mod dedup_commit_lock_tests;
#[path = "bus_subscriber_tests.rs"]
mod subscriber_tests;
#[path = "bus_trigger_queue_tests.rs"]