The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(session_host): fix flow prompt test imports and error assertion
Steven Enamakel5b4ec9bbe1bd
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rsindex e287576214..75bf3feb70 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs@@ -1,3 +1,5 @@+use super::*;+#[cfg(feature = "flows")]#[tokio::test]async fn cold_flow_prompt_uses_the_module_and_warm_resume_does_not_refetch() {@@ -38,7 +40,7 @@ async fn cold_flow_prompt_uses_the_module_and_warm_resume_does_not_refetch() {let mut disabled_config = (*prelude.runtime_config.as_deref().expect("scoped config")).clone();disabled_config.components.tinyflows = false;- prelude.runtime_config = Some(std::sync::Arc::new(disabled_config));+ prelude.runtime_config = Some(Arc::new(disabled_config));let warm = prelude.prepare(false).await@@ -49,7 +51,7 @@ async fn cold_flow_prompt_uses_the_module_and_warm_resume_does_not_refetch() {Ok(_) => panic!("cold flow prompt must honor the disabled component"),Err(error) => error,};- assert!(error.to_string().contains("COMPONENT_DISABLED:tinyflows"));+ assert!(format!("{error:#}").contains("COMPONENT_DISABLED:tinyflows"));}#[cfg(feature = "flows")]