Skip to content

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

fix(tests): remove unused sync env lock import and switch to async variant

Steven Enamakel4e077ce2ebdc
diff --git a/tests/in_process/worker_c_modules_e2e.rs b/tests/in_process/worker_c_modules_e2e.rs
index 8f3c3bbd3d..afffc29945 100644
--- a/tests/in_process/worker_c_modules_e2e.rs
+++ b/tests/in_process/worker_c_modules_e2e.rs
@@ -4,7 +4,7 @@
//! composio / threads slice and drives the real HTTP JSON-RPC router against
//! an isolated workspace. It avoids live network calls.
-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;
use crate::rpc_harness::{ok, rpc};
@@ -726,7 +726,7 @@ async fn threads_remaining_controller_paths_round_trip() {
#[tokio::test]
async fn memory_v2_controller_surface_is_reachable() {
- let _lock = env_lock();
+ let _lock = env_lock_async().await;
let harness = setup().await;
let methods = [