Skip to content

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

test(flows): clean up unnecessary workflow field in tests

Steven Enamakeldf47ff6df7e9
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 03d90b1c9d..c45893d21e 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
@@ -65,8 +65,7 @@ async fn flows_create_schedule_trigger_creates_disabled() {
false,
)
.await
- .unwrap()
- .workflow;
+ .unwrap();
assert!(
!created.value.enabled,
@@ -100,8 +99,7 @@ async fn flows_create_app_event_trigger_creates_disabled() {
false,
)
.await
- .unwrap()
- .workflow;
+ .unwrap();
assert!(
!created.value.enabled,
@@ -176,8 +174,7 @@ async fn flows_create_outbound_http_forces_require_approval() {
false,
)
.await
- .unwrap()
- .workflow;
+ .unwrap();
assert!(
created.value.require_approval,
@@ -212,8 +209,7 @@ async fn flows_create_readonly_graph_respects_caller_require_approval() {
false,
)
.await
- .unwrap()
- .workflow;
+ .unwrap();
assert!(
!created.value.require_approval,
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 610b8c5f76..76e7e19dba 100644
--- a/crates/openhuman-core/src/flows/ops_resume_compatibility_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_resume_compatibility_tests.rs
@@ -16,8 +16,7 @@ async fn flows_resume_marks_an_incompatible_legacy_checkpoint_failed() {
FlowRunTrigger::Rpc,
)
.await
- .unwrap()
- .workflow;
+ .unwrap();
let thread_id = run.value["thread_id"].as_str().unwrap().to_string();
let pending: Vec<String> =
serde_json::from_value(run.value["pending_approvals"].clone()).unwrap();