Skip to content

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

test(channels): collapse multi-line assertions in module provider tests

Steven Enamakeldd3aa1c2ebda
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 9c677c90da..ea3b927c34 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
@@ -763,10 +763,7 @@ async fn hosted_target_projects_typed_media_and_voice_to_web_and_gateway_once()
.iter()
.filter(|event| {
serde_json::to_value(event)
- .is_ok_and(|wire| {
- wire.to_string()
- .contains("media:tenant7/thread42/image1")
- })
+ .is_ok_and(|wire| wire.to_string().contains("media:tenant7/thread42/image1"))
})
.count(),
1,
@@ -778,8 +775,7 @@ async fn hosted_target_projects_typed_media_and_voice_to_web_and_gateway_once()
.expect("typed provider parts")
.iter()
.any(|part| {
- part["part"]["kind"] == "text"
- && part["part"]["text"] == "Generated image"
+ part["part"]["kind"] == "text" && part["part"]["text"] == "Generated image"
}),
"the media caption remains a typed text part in the provider terminal"
);