Skip to content

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

test(flows): improve resume decision test assertion

Steven Enamakel9fea7b6da3fb
diff --git a/crates/openhuman-core/src/flows/ops_resume_decision_tests.rs b/crates/openhuman-core/src/flows/ops_resume_decision_tests.rs
index 36201468be..dcd6b89921 100644
--- a/crates/openhuman-core/src/flows/ops_resume_decision_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_resume_decision_tests.rs
@@ -298,8 +298,12 @@ async fn flows_resume_of_a_non_paused_run_errors_clearly() {
)
.await
.expect_err("resuming an already-completed run must be a clear error, not a silent no-op");
+ let expected = "flow run is not parked for approval (status: completed)";
+ if !err.contains(expected) {
+ eprintln!("ResumeRun nonparked-status diagnostic: {err}");
+ }
assert!(
- err.contains("flow run is not parked for approval (status: completed)"),
+ err.contains(expected),
"expected a clear non-paused-run error, got: {err}"
);
}