The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ops_tests): correct test assertion for channel state transition
Steven Enamakel74049fab5e7a
diff --git a/crates/openhuman-core/src/channels/controllers/ops_tests.rs b/crates/openhuman-core/src/channels/controllers/ops_tests.rsindex 6bb289365e..e301b86e3c 100644--- a/crates/openhuman-core/src/channels/controllers/ops_tests.rs+++ b/crates/openhuman-core/src/channels/controllers/ops_tests.rs@@ -2,9 +2,7 @@ use super::*;use crate::channels::email_channel::EmailConfig;use crate::channels::providers::yuanbao::YuanbaoConfig;use crate::config::schema::{DiscordConfig, IMessageConfig};-use chrono::{TimeZone, Utc};use tempfile::tempdir;-use tinymemory_api::chunks::{chunk_id, Chunk, Metadata, SourceKind, SourceRef};fn isolated_test_config() -> (tempfile::TempDir, Config) {let tmp = tempdir().expect("failed to create temp dir");@@ -15,30 +13,6 @@ fn isolated_test_config() -> (tempfile::TempDir, Config) {(tmp, config)}-fn sample_chat_chunk(source_id: &str, seq: u32) -> Chunk {- let ts = Utc- .timestamp_millis_opt(1_700_000_000_000 + i64::from(seq))- .unwrap();- Chunk {- id: chunk_id(SourceKind::Chat, source_id, seq, "channel memory"),- content: format!("channel memory {source_id} {seq}"),- metadata: Metadata {- source_kind: SourceKind::Chat,- source_id: source_id.to_string(),- owner: "[email protected]".to_string(),- timestamp: ts,- time_range: (ts, ts),- tags: vec!["channel".to_string()],- source_ref: Some(SourceRef::new(format!("discord://{source_id}/{seq}"))),- path_scope: None,- },- token_count: 12,- seq_in_source: seq,- created_at: ts,- partial_message: false,- }-}-/// Read the persisted Discord `allowed_users` array from the saved config.toml.async fn reload_discord_allowed_users(config: &Config) -> Vec<String> {let raw = tokio::fs::read_to_string(&config.config_path)