Skip to content

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

test(channel_health): gate test module behind modules feature

Steven Enamakelf562954a0ae8
diff --git a/crates/openhuman-core/src/modules/channel_health.rs b/crates/openhuman-core/src/modules/channel_health.rs
index 594d9ce9d4..e3481adff3 100644
--- a/crates/openhuman-core/src/modules/channel_health.rs
+++ b/crates/openhuman-core/src/modules/channel_health.rs
@@ -16,6 +16,6 @@ pub(crate) async fn check(
.await
}
-#[cfg(test)]
+#[cfg(all(test, feature = "modules"))]
#[path = "channel_health_tests.rs"]
mod tests;
diff --git a/crates/openhuman-core/src/modules/channel_health_tests.rs b/crates/openhuman-core/src/modules/channel_health_tests.rs
index e479e6a762..0078283a34 100644
--- a/crates/openhuman-core/src/modules/channel_health_tests.rs
+++ b/crates/openhuman-core/src/modules/channel_health_tests.rs
@@ -1,6 +1,5 @@
use super::*;
-#[cfg(feature = "modules")]
#[tokio::test]
async fn provider_credentials_never_reach_an_unattested_bus() {
use std::sync::{