Skip to content

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

test(channels): update voice part assertions to match typed shape

Steven Enamakelcaa0ec6045de
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
index 74a3609cc8..6dc0243ddd 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
@@ -732,8 +732,9 @@ async fn hosted_target_projects_typed_media_and_voice_to_web_and_gateway_once()
.expect("typed voice provider parts")
.iter()
.any(|part| {
- part["part"]["kind"] == "voice_note"
- && part["part"]["voiceNote"]["media"]["opaqueId"]
+ part["kind"] == "voice"
+ && part["voice"]["kind"] == "media"
+ && part["voice"]["media"]["opaqueId"]
== "media:tenant7/thread42/voice1"
})
);