Skip to content

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

test(embed): allow dead code in shared test support modules

Steven Enamakela348a8038229
diff --git a/crates/openhuman-embed/tests/support/attached_tools.rs b/crates/openhuman-embed/tests/support/attached_tools.rs
index 9ec7b79cf1..1f8ec7c041 100644
--- a/crates/openhuman-embed/tests/support/attached_tools.rs
+++ b/crates/openhuman-embed/tests/support/attached_tools.rs
@@ -1,3 +1,5 @@
+#![allow(dead_code)] // Each test target includes the shared scenarios but runs one case.
+
use crate::common;
use common::{chat_completion, chat_requests, offline_config, runtime, stub_backend};
use openhuman_embed::session_store::SessionRef;
diff --git a/crates/openhuman-embed/tests/support/cron_agents.rs b/crates/openhuman-embed/tests/support/cron_agents.rs
index dbbb731682..5bfe79fccc 100644
--- a/crates/openhuman-embed/tests/support/cron_agents.rs
+++ b/crates/openhuman-embed/tests/support/cron_agents.rs
@@ -6,6 +6,8 @@
//! decides the run's recorded result. And a runtime that asks for background
//! services runs the scheduler, then stops it when it is dropped.
+#![allow(dead_code)] // Each test target includes the shared scenarios but runs one case.
+
use crate::common;
use std::sync::{Arc, Mutex};
diff --git a/crates/openhuman-embed/tests/support/host_only_tools.rs b/crates/openhuman-embed/tests/support/host_only_tools.rs
index 745bcd0253..14f3f84cb5 100644
--- a/crates/openhuman-embed/tests/support/host_only_tools.rs
+++ b/crates/openhuman-embed/tests/support/host_only_tools.rs
@@ -4,6 +4,8 @@
//! to that catalog: no shell, writes, network, memory, skills, MCP or delegation.
//! Assertions inspect provider requests and attempted filesystem effects.
+#![allow(dead_code)] // Each test target includes the shared scenarios but runs one case.
+
use crate::common;
use std::sync::atomic::{AtomicUsize, Ordering};
diff --git a/crates/openhuman-embed/tests/support/structured_turns.rs b/crates/openhuman-embed/tests/support/structured_turns.rs
index 64b9d72257..fd4d7e23c8 100644
--- a/crates/openhuman-embed/tests/support/structured_turns.rs
+++ b/crates/openhuman-embed/tests/support/structured_turns.rs
@@ -7,6 +7,8 @@
//! answered, and the reasoning it spent). The document is untrusted data, so a
//! host-only agent may take it past the prompt guard; no other agent may.
+#![allow(dead_code)] // Each test target includes the shared scenarios but runs one case.
+
use crate::common;
use std::sync::atomic::{AtomicUsize, Ordering};