Skip to content

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

test: remove unused env_lock helper from connectivity e2e

Steven Enamakel2a9a98b72881
diff --git a/tests/raw_coverage/connectivity_diagnostic_e2e.rs b/tests/raw_coverage/connectivity_diagnostic_e2e.rs
index e9b4161c0a..de9f74cbcd 100644
--- a/tests/raw_coverage/connectivity_diagnostic_e2e.rs
+++ b/tests/raw_coverage/connectivity_diagnostic_e2e.rs
@@ -1,9 +1,4 @@
-//! Raw-line oriented E2E coverage for the connectivity domain.
-//!
-//! The public JSON-RPC surface is intentionally small (`connectivity_diag`),
-//! while the module also owns embedded-core port selection. These tests drive
-//! both through exported production APIs so the E2E lcov captures the real
-//! success and error branches.
+//! JSON-RPC coverage for the connectivity diagnostics surface.
use crate::env_guard::EnvVarGuard;
use std::net::SocketAddr;
@@ -29,11 +24,6 @@ struct TestHarness {
rpc_join: tokio::task::JoinHandle<Result<(), std::io::Error>>,
}
-fn env_lock() -> tokio::sync::MutexGuard<'static, ()> {
- let mutex = ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
- mutex.blocking_lock()
-}
-
async fn env_lock_async() -> tokio::sync::MutexGuard<'static, ()> {
let mutex = ENV_LOCK.get_or_init(|| tokio::sync::Mutex::new(()));
mutex.lock().await