Skip to content

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

fix(tests): use LazyLock for triage env guard

Steven Enamakel9ea318340e02
diff --git a/crates/openhuman-core/src/integrations/composio/bus_tests.rs b/crates/openhuman-core/src/integrations/composio/bus_tests.rs
index f1227b6d39..e157904b5c 100644
--- a/crates/openhuman-core/src/integrations/composio/bus_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/bus_tests.rs
@@ -8,7 +8,8 @@ use serde_json::json;
use tinybus::EventHandler;
use tokio::sync::Mutex;
-static TRIAGE_ENV_GUARD: Mutex<()> = Mutex::new(());
+static TRIAGE_ENV_GUARD: std::sync::LazyLock<Mutex<()>> =
+ std::sync::LazyLock::new(|| Mutex::new(()));
#[tokio::test]
async fn ignores_non_composio_events() {