Skip to content

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

test(flows): cover saved workflow cycles via async engine check

Steven Enamakel4939c8b57dcf
diff --git a/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs b/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs
index 46053d9346..4f1878ba28 100644
--- a/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs
@@ -428,8 +428,8 @@ async fn builder_proposal_rejects_an_incompatible_saved_child_reference() {
assert!(error.contains("saved-child"), "{error}");
}
-#[test]
-fn referenced_child_compatibility_stops_at_saved_workflow_cycles() {
+#[tokio::test]
+async fn referenced_child_compatibility_stops_at_saved_workflow_cycles() {
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
let flow_a = store::create_flow(
@@ -472,7 +472,14 @@ fn referenced_child_compatibility_stops_at_saved_workflow_cycles() {
.unwrap();
let candidate = structurally_valid_graph(referenced_child_graph(&flow_a.id));
- assert!(referenced_workflow_compatibility_errors(&config, &candidate).is_empty());
+ assert!(config_aware_engine_compatibility_errors(
+ &crate::core::runtime::DispatchCtx::ambient(),
+ &config,
+ serde_json::to_value(candidate).unwrap(),
+ )
+ .await
+ .unwrap()
+ .is_empty());
}
// ── core-managed drafts (F5) ─────────────────────────────────────────────────