Skip to content

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

refactor(tests): adjust unwrapping in flow tests

Steven Enamakel16251920fd9c
diff --git a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs
index 777673cda0..242810b62c 100644
--- a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs
+++ b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs
@@ -371,7 +371,8 @@ async fn edit_workflow_surfaces_draft_write_back_failure() {
[],
|row| row.get(0),
)
- .unwrap();
+ .unwrap()
+ .workflow;
conn.execute_batch(&format!(
"CREATE TRIGGER refuse_draft_updates BEFORE UPDATE ON {docs_table}
WHEN NEW.coll = 'flows.drafts'
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 c45893d21e..7f5f3d6365 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
@@ -375,7 +375,8 @@ async fn strict_gate_rejects_an_incompatible_saved_child_reference() {
false,
false,
)
- .unwrap();
+ .unwrap()
+ .workflow;
let error = strict_gate(
&crate::core::runtime::DispatchCtx::ambient(),
@@ -403,7 +404,8 @@ async fn builder_proposal_rejects_an_incompatible_saved_child_reference() {
false,
false,
)
- .unwrap();
+ .unwrap()
+ .workflow;
let parent = structurally_valid_graph(referenced_child_graph(&child.id));
let error = build_builder_proposal(
@@ -439,7 +441,8 @@ async fn referenced_child_compatibility_stops_at_saved_workflow_cycles() {
false,
false,
)
- .unwrap();
+ .unwrap()
+ .workflow;
let flow_b = store::create_flow(
&config,
"cycle b".to_string(),
@@ -447,7 +450,8 @@ async fn referenced_child_compatibility_stops_at_saved_workflow_cycles() {
false,
false,
)
- .unwrap();
+ .unwrap()
+ .workflow;
store::update_flow_graph(
&config,
&flow_a.id,
diff --git a/crates/openhuman-core/src/flows/ops_resume_compatibility_tests.rs b/crates/openhuman-core/src/flows/ops_resume_compatibility_tests.rs
index 76e7e19dba..1814fbbdac 100644
--- a/crates/openhuman-core/src/flows/ops_resume_compatibility_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_resume_compatibility_tests.rs
@@ -104,7 +104,8 @@ async fn flows_resume_marks_a_checkpoint_with_an_incompatible_saved_child_failed
false,
false,
)
- .unwrap();
+ .unwrap()
+ .workflow;
let legacy_graph = structurally_valid_graph(referenced_child_graph(&child.id));
store::update_flow_graph(
&config,