Skip to content

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

test: replace blocking env_lock with async variant in e2e tests

Steven Enamakel9d80f2f6f41d
diff --git a/tests/in_process/agent_approval_memory_coverage_e2e.rs b/tests/in_process/agent_approval_memory_coverage_e2e.rs
index c5045441e8..75bc154118 100644
--- a/tests/in_process/agent_approval_memory_coverage_e2e.rs
+++ b/tests/in_process/agent_approval_memory_coverage_e2e.rs
@@ -20,7 +20,7 @@
//! JSON-RPC router (`build_core_http_router`) and asserted on, so the number the
//! gate reports and the coverage that exists are the same thing.
-use crate::env_guard::{env_lock, env_lock_async};
+use crate::env_guard::env_lock_async;
use crate::env_guard::EnvVarGuard;
use crate::rpc_auth::{ensure_rpc_auth, rpc_token};
use crate::rpc_harness::{error_message, payload};
@@ -703,7 +703,7 @@ async fn agent_registry_snapshot_counts_agree_with_the_component_inventory() {
/// `openhuman.memory_engines_list` agrees: nothing is active.
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn memory_engine_status_explains_why_memory_is_off_when_signed_out() {
- let _lock = env_lock();
+ let _lock = env_lock_async().await;
let harness = setup().await;
let response = rpc(