Skip to content

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

test(embed): use local tinychannels artifact in channel agent test

Steven Enamakelc68a10e04e41
diff --git a/crates/openhuman-embed/tests/channel_agents.rs b/crates/openhuman-embed/tests/channel_agents.rs
index c9185a00db..c8f6f34703 100644
--- a/crates/openhuman-embed/tests/channel_agents.rs
+++ b/crates/openhuman-embed/tests/channel_agents.rs
@@ -157,8 +157,17 @@ fn a_telegram_message_is_answered_by_the_bound_runtime_agent() {
// The Bot API base is read when the channel is built.
std::env::set_var("OPENHUMAN_TELEGRAM_BOT_API_BASE", bot_api.uri());
+ let mut config = offline_config();
+ if let Some(artifact) = openhuman_core::modules::local_artifact("tinychannels") {
+ config.modules.overrides = vec![
+ openhuman_core::config::schema::ModuleOverride::with_path(
+ "tinychannels",
+ artifact.to_string_lossy(),
+ ),
+ ];
+ }
let runtime = Runtime::builder()
- .config(offline_config())
+ .config(config)
.workspace(Workspace::Ephemeral)
.backend_url(backend.uri())
.api_key("sk-managed-fixture")