Skip to content

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

fix(voice_tests): update test patterns for IndexedVadEvent

Steven Enamakel5da6e6947976
diff --git a/src/openhuman/modules/voice_tests.rs b/src/openhuman/modules/voice_tests.rs
index ca1153b90e..f9a6335fc0 100644
--- a/src/openhuman/modules/voice_tests.rs
+++ b/src/openhuman/modules/voice_tests.rs
@@ -298,8 +298,9 @@ async fn the_published_module_answers_through_this_client() {
.await
.expect("VadPush");
match events.as_slice() {
- [super::VadEvent::SpeechEnd {
- voiced_ms, emit, ..
+ [super::IndexedVadEvent {
+ event: super::VadEvent::SpeechEnd { voiced_ms, emit, .. },
+ ..
}] => {
assert_eq!(*voiced_ms, 120, "voiced time carries across pushes");
assert!(emit);
@@ -364,7 +365,7 @@ async fn every_entry_point_degrades_rather_than_hanging_when_the_module_is_gone(
assert!(matches!(
super::VadSession::open(
&config,
- super::vad_config_from_server_config(&
+ super::vad_config_from_server_config(
&crate::openhuman::config::VoiceServerConfig::default()
)
)