Skip to content

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

refactor(channels): adjust test configuration for routes module

Steven Enamakel5431cf9eba7a
diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rs
index 7d9e068266..361e91d310 100644
--- a/crates/openhuman-core/src/channels/mod.rs
+++ b/crates/openhuman-core/src/channels/mod.rs
@@ -33,7 +33,7 @@ pub(crate) mod prompt;
pub mod providers;
#[cfg(feature = "channels")]
mod routes;
-#[cfg(test)]
+#[cfg(all(test, feature = "channels"))]
pub(crate) use routes::register_hosted_route_test_policy;
#[cfg(feature = "channels")]
mod runtime;