Skip to content

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

test(flows): update schedule trigger assertion in tests

Steven Enamakel423ac2b49ad8
diff --git a/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rs b/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rs
index 1e91ee2dd1..a54d26f41e 100644
--- a/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_triggers_and_resume_tests.rs
@@ -268,7 +268,13 @@ async fn flows_update_does_not_rebind_schedule_for_pinned_input_changes() {
"the flow remains enabled during the edit"
);
assert_eq!(
- updated.value.graph["nodes"][0]["config"]["inputs"]["team"], "platform",
+ updated.value.graph["nodes"]
+ .as_array()
+ .unwrap()
+ .iter()
+ .find(|node| node["kind"] == "trigger")
+ .expect("schedule trigger exists")["config"]["inputs"]["team"],
+ "platform",
"the input edit must be persisted for this rebind regression"
);