Skip to content

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

test(flows): unwrap graph_wiring_warnings results in assertions

Steven Enamakel37c77ec64435
diff --git a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs
index ab56f1863c..225f92ecb8 100644
--- a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs
@@ -52,7 +52,7 @@ async fn graph_wiring_warnings_uses_the_probed_output_fields_when_schema_is_unkn
assert!(
graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &real_field).await.unwrap().is_empty(),
"a probed-real field must not warn: {:?}",
- graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &real_field).await
+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &real_field).await.unwrap()
);
// A binding to a field the probe did NOT observe — flagged, using the
diff --git a/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs b/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs
index 5584b3c574..87c8f297cb 100644
--- a/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_tool_contract_and_wiring_warnings_tests.rs
@@ -93,7 +93,7 @@ async fn graph_wiring_warnings_resolves_a_separated_action_slug_alias() {
]
}));
- let warnings = graph_wiring_warnings(&Config::default(), &g).await;
+ let warnings = graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &Config::default(), &g).await.unwrap();
assert_eq!(
warnings.len(),
@@ -469,7 +469,7 @@ async fn graph_wiring_warnings_is_silent_for_a_whole_payload_binding() {
]
}));
assert!(
- graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.is_empty(),
+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap().is_empty(),
"{:?}",
graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap()
);
@@ -503,7 +503,7 @@ async fn graph_wiring_warnings_is_silent_for_composio_envelope_metadata_fields()
]
}));
assert!(
- graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.is_empty(),
+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap().is_empty(),
"{:?}",
graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap()
);
@@ -607,7 +607,7 @@ async fn graph_wiring_warnings_is_silent_on_split_out_when_schema_is_wholly_unkn
]
}));
assert!(
- graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.is_empty(),
+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap().is_empty(),
"{:?}",
graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &g).await.unwrap()
);
@@ -686,6 +686,6 @@ async fn graph_wiring_warnings_suggests_the_probed_split_out_path_when_schema_is
assert!(
graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &fixed).await.unwrap().is_empty(),
"{:?}",
- graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &fixed).await
+ graph_wiring_warnings(&crate::core::runtime::DispatchCtx::ambient(), &config, &fixed).await.unwrap()
);
}