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
test(connect): assert pending deletion inside scoped context
Steven Enamakel301f5cd6f03f
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rsindex 03a2f86a8d..ee9da163ae 100644--- a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs@@ -245,15 +245,16 @@ async fn stamped_channel_forget_isolated_to_the_configured_account() {).await;- assert_eq!(+ let (forgotten, queued) =CoreContext::scope(current_ctx.into_core().unwrap(), async {- clear_channel_memory(¤t, "discord").await.unwrap()+ let forgotten = clear_channel_memory(¤t, "discord").await.unwrap();+ let queued = crate::memory::deletion::pending(¤t.workspace_dir);+ (forgotten, queued)})- .await,- 0- );+ .await;+ assert_eq!(forgotten, 0);assert_eq!(- crate::memory::deletion::pending(¤t.workspace_dir),+ queued,vec![crate::memory::deletion::PendingDeletion::Thread {thread_id: current_thread.clone()}]