Skip to content

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

test(channels): remove unused imports and alias assertions

Steven Enamakelecbb4461f7b1
diff --git a/crates/openhuman-core/src/channels/routes_provider_tests.rs b/crates/openhuman-core/src/channels/routes_provider_tests.rs
index fba9facaf6..efe2f2a590 100644
--- a/crates/openhuman-core/src/channels/routes_provider_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_provider_tests.rs
@@ -1,7 +1,7 @@
use super::tests::{runtime_context, RecordingChannel};
use super::*;
use crate::channels::context::conversation_history_key;
-use crate::channels::{Channel, SendMessage};
+use crate::channels::Channel;
use std::path::PathBuf;
use std::sync::Arc;
use tinychannels_bus::ChannelMessage;
diff --git a/crates/openhuman-core/src/channels/routes_tests.rs b/crates/openhuman-core/src/channels/routes_tests.rs
index 969b4cf0dd..18ef194cf9 100644
--- a/crates/openhuman-core/src/channels/routes_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_tests.rs
@@ -11,7 +11,6 @@ use std::path::{Path, PathBuf};
use std::sync::{Arc, Mutex};
use std::task::{Context, Poll, Waker};
use tinybus::EventHandler;
-use tinychannels::routes::resolve_provider_alias;
use tinychannels_bus::context::ChatMessage;
use tinychannels_bus::ChannelMessage;
use tinytools::{Tool, ToolResult};
@@ -39,7 +38,7 @@ impl Tool for DummyTool {
#[derive(Default)]
pub(super) struct RecordingChannel {
- sent: Mutex<Vec<SendMessage>>,
+ pub(super) sent: Mutex<Vec<SendMessage>>,
}
#[async_trait]
@@ -202,11 +201,6 @@ fn provider_descriptors_use_configured_slugs_and_keep_managed_aliases() {
);
assert_eq!(providers[0].aliases, Vec::<String>::new());
assert_eq!(providers[1].aliases, ["backend", "openhuman-backend"]);
- assert_eq!(
- resolve_provider_alias("backend", &providers).as_deref(),
- Some("openhuman")
- );
- assert!(resolve_provider_alias("p_custom_a8c3f", &providers).is_none());
}
#[cfg(feature = "modules")]