Skip to content

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

test: bound the first approval wait and gate the import test on storage-sqlite

M3gA-Mind64f54a853272
diff --git a/crates/openhuman-core/src/security/approval/gate_core_flow_tests.rs b/crates/openhuman-core/src/security/approval/gate_core_flow_tests.rs
index 593d0c940d..d8cd745a13 100644
--- a/crates/openhuman-core/src/security/approval/gate_core_flow_tests.rs
+++ b/crates/openhuman-core/src/security/approval/gate_core_flow_tests.rs
@@ -248,17 +248,21 @@ async fn approve_always_for_create_workflow_persists_and_skips_the_next_prompt()
};
let first = intercept(gate.clone());
- let pending = loop {
- if let Some(p) = gate
- .list_pending()
- .unwrap()
- .into_iter()
- .find(|p| p.tool_name == "create_workflow")
- {
- break p;
+ let pending = tokio::time::timeout(Duration::from_secs(5), async {
+ loop {
+ if let Some(p) = gate
+ .list_pending()
+ .unwrap()
+ .into_iter()
+ .find(|p| p.tool_name == "create_workflow")
+ {
+ break p;
+ }
+ tokio::time::sleep(Duration::from_millis(10)).await;
}
- tokio::time::sleep(Duration::from_millis(10)).await;
- };
+ })
+ .await
+ .expect("the first create_workflow must park for approval");
let row = gate
.decide(&pending.request_id, ApprovalDecision::ApproveAlwaysForTool)
.unwrap()
diff --git a/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rs b/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rs
index b4d80c0915..75685b7f0b 100644
--- a/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rs
+++ b/crates/openhuman-core/src/skills/bundled/flow_authoring_tests.rs
@@ -109,6 +109,7 @@ fn tiny_skills_rejects_unsafe_resource_paths_without_writing_outside_scope() {
/// While the local legacy flow import is incomplete, workflow access is paused
/// (`ensure_flow_scope_ready`), so the builtin must stay hidden; once the
/// import finishes, the next prewarm must surface it.
+#[cfg(feature = "storage-sqlite")]
#[tokio::test]
// The guard serializes the process-wide storage slot for this async test.
#[allow(clippy::await_holding_lock)]