Skip to content

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

fix(test): correct static mutex type in test files

Steven Enamakel50f7d6bdc203
diff --git a/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rs b/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rs
index 80f555cd21..7d44552cfc 100644
--- a/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rs
@@ -8,7 +8,7 @@ use std::sync::Mutex;
use std::time::Instant;
use tokio::time::{timeout, Duration as TokioDuration};
-static GATE_TEST_LOCK: Mutex<()> = tokio::sync::Mutex::const_new(());
+static GATE_TEST_LOCK: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());
fn lock() -> tokio::sync::MutexGuard<'static, ()> {
// Tolerate poisoning so a panicking test doesn't block the rest.
diff --git a/crates/openhuman-core/src/desktop/provider_surfaces/ops_tests.rs b/crates/openhuman-core/src/desktop/provider_surfaces/ops_tests.rs
index 2a2bfc25b5..c98b562abc 100644
--- a/crates/openhuman-core/src/desktop/provider_surfaces/ops_tests.rs
+++ b/crates/openhuman-core/src/desktop/provider_surfaces/ops_tests.rs
@@ -3,7 +3,7 @@ use std::sync::Mutex;
/// Serializes tests that mutate the process-global RESPOND_QUEUE so cargo's
/// default parallel test runner cannot interleave clear/insert/assert cycles.
-static TEST_MUTEX: Mutex<()> = tokio::sync::Mutex::const_new(());
+static TEST_MUTEX: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());
fn sample_event(entity_id: &str) -> ProviderEvent {
ProviderEvent {
diff --git a/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs b/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs
index 2e683bfade..f41c99d8bd 100644
--- a/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs
+++ b/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs
@@ -67,7 +67,7 @@ async fn a_driver_that_cannot_answer_makes_a_toolkit_not_registrable() {
// items these assert on (`TRIAGE_DISABLED_ENV`, the parser). They belong here,
// against the module that actually defines them.
-static TRIAGE_ENV_GUARD: Mutex<()> = tokio::sync::Mutex::const_new(());
+static TRIAGE_ENV_GUARD: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());
#[tokio::test]
async fn ignores_non_composio_events() {