Skip to content

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

test(flows): surface agent build error in finalizer test

Steven Enamakel0c2ce4a69868
diff --git a/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs b/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs
index 03881c4f63..0df6588703 100644
--- a/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_run_finalizer_tests.rs
@@ -18,12 +18,17 @@ async fn streamed_flow_finalizer_settles_the_bridge_workspace_turn_state() {
&config_b.workspace_dir,
)
.expect("agent registry init");
- let mut agent = crate::agent::OpenHumanSessionHost::from_config_for_agent(
+ let mut agent = match crate::agent::OpenHumanSessionHost::from_config_for_agent(
&ctx,
&config_b,
"workflow_builder",
- )
- .expect("build workflow_builder agent");
+ ) {
+ Ok(agent) => agent,
+ Err(error) => {
+ eprintln!("build workflow_builder agent: {error:#}");
+ panic!("build workflow_builder agent failed");
+ }
+ };
let target = FlowStreamTarget {
thread_id: "flow-stream-workspace-binding".to_string(),
request_id: "flow-stream-request-binding".to_string(),