Skip to content

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

test(channels): inline module client helper in turn tests

Steven Enamakel9d211614bb7f
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn_tests.rs
index 97f66ff065..2551f19e87 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn_tests.rs
@@ -1,11 +1,5 @@
use super::*;
-async fn module_client_with_storage(
- _storage: &crate::channels::module_fixture::MemoryStorageGuard,
-) -> tinybus::module::ModuleClient {
- crate::channels::module_fixture::client().await
-}
-
#[tokio::test]
async fn native_inbound_preparation_preserves_image_envelope_for_typed_turns() {
let _storage = crate::channels::module_fixture::install_memory_storage();
@@ -57,7 +51,7 @@ async fn native_inbound_preparation_preserves_image_envelope_for_typed_turns() {
tinychannels_bus::module_inbound::ChannelInboundPreparationMode::Typed,
);
let prepared: PreparedChannelInbound = crate::modules::channel_controller::prepare_inbound(
- &module_client_with_storage(&_storage).await,
+ &crate::channels::module_fixture::client().await,
request,
)
.await
@@ -70,7 +64,7 @@ async fn native_inbound_preparation_preserves_image_envelope_for_typed_turns() {
assert!(prepared.message.content.is_empty());
let legacy = crate::modules::channel_controller::prepare_inbound(
- &module_client_with_storage(&_storage).await,
+ &crate::channels::module_fixture::client().await,
channel_inbound_preparation_request(
ChannelInboundSource::Envelope {
envelope,
@@ -151,7 +145,7 @@ async fn native_typed_preparation_preserves_ordered_voice_and_file_parts() {
};
let prepared = crate::modules::channel_controller::prepare_inbound(
- &module_client_with_storage(&_storage).await,
+ &crate::channels::module_fixture::client().await,
channel_inbound_preparation_request(
ChannelInboundSource::Envelope {
envelope: envelope.clone(),