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 Enamakelea28fafd5e0f
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 7f0f5d1038..f6d9329570 100644
--- a/crates/openhuman-core/src/flows/ops_resume_decision_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_resume_decision_tests.rs
@@ -299,7 +299,8 @@ 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 = "is not waiting for approval";
- if !err.contains(expected) {
+ if std::env::var_os("OPENHUMAN_TINYFLOWS_RUN_DIAGNOSTICS").is_some() || !err.contains(expected)
+ {
let dispatch = crate::core::runtime::DispatchCtx::ambient();
let tenant_scoped = dispatch
.tenant()