Skip to content

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

test: gate channel and flow test fixtures behind feature flags

Steven Enamakel37dfc07f1f67
diff --git a/crates/openhuman-core/src/agent/queued_turn_tests.rs b/crates/openhuman-core/src/agent/queued_turn_tests.rs
index 4982498770..152a051422 100644
--- a/crates/openhuman-core/src/agent/queued_turn_tests.rs
+++ b/crates/openhuman-core/src/agent/queued_turn_tests.rs
@@ -39,7 +39,9 @@ fn trusted_turn(session_key: &str) -> Arc<super::super::turn_host::TrustedAgentT
imported_history: vec![tinyagents_session::transcript::TranscriptMessage::user(
"trusted imported row",
)],
+ #[cfg(feature = "channels")]
legacy_history: None,
+ #[cfg(feature = "channels")]
native_target: None,
})
}
diff --git a/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
index e192ed7f01..e474a4692a 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_turn_lifecycle_tests.rs
@@ -181,6 +181,7 @@ async fn a_refused_message_publishes_no_turn_events() {
/// context with its own config, the local provider receives the inference
/// request and rejects it, and the turn ends in exactly one classified
/// `chat_error` after which the thread is free and no session is cached.
+#[cfg(feature = "flows")]
#[tokio::test]
async fn a_turn_with_an_unavailable_local_provider_ends_in_one_classified_chat_error() {
use crate::core::runtime::{context::CoreContext, DomainSet};