Skip to content

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

test: use shared test definition helper in ptt ingress test

Steven Enamakel632b9cfd3061
diff --git a/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs
index 4be31edbaf..0b8fbb29d0 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs
@@ -69,11 +69,7 @@ async fn ptt_source_turn_completes_without_publishing_a_voice_event() {
config.components.skills = false;
config.components.flows = false;
config.agent.chat_agent_id = Some("ptt_event_regression".to_string());
- let mut definition =
- crate::agent_registry::host_definition::AgentDefinitionRegistry::builtins_only()
- .get("orchestrator")
- .cloned()
- .expect("built-in orchestrator definition");
+ let mut definition = crate::agent::harness::test_support::test_main_def();
definition.id = "ptt_event_regression".to_string();
definition.tools = tinyagents_definition::ToolScope::Named(Vec::new());
definition.subagents.clear();
@@ -187,6 +183,10 @@ async fn ptt_source_turn_completes_without_publishing_a_voice_event() {
)
});
assert_eq!(done.full_response.as_deref(), Some("hello from mock"));
+ assert!(
+ !model.requests().is_empty(),
+ "successful turn should invoke the scripted model"
+ );
// Subscriber dispatch is a single FIFO loop (`events/subscriber.rs`), so
// observing this marker proves it has handled every locally published