Skip to content

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

test(composio): install the memory seams in the clear_memory tests

Nguyen Thanh Dat3e7ad26f1331
diff --git a/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs b/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs
index a8c1de96a7..d5292727ea 100644
--- a/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs
+++ b/src/openhuman/integrations/composio/ops_tests_part_01_tests.rs
@@ -388,6 +388,11 @@ async fn composio_delete_connection_via_mock() {
#[tokio::test]
async fn composio_delete_connection_clear_memory_deletes_slack_source() {
+ // The embedding seam fails loudly when unwired. Installed here rather
+ // than relied upon from another test: `install_for_tests` is
+ // `Once`-guarded, so a test that omits it passes only while some
+ // earlier test in the same binary happened to run first.
+ crate::openhuman::memory::host_impls::install_for_tests();
let _serialised = module_guard().await;
let app = Router::new()
.route(
@@ -444,6 +449,11 @@ async fn composio_delete_connection_clear_memory_deletes_slack_source() {
/// content file sits at the production `content_path` location.
#[tokio::test]
async fn composio_delete_connection_clear_memory_cascades_source_tree_and_content_file() {
+ // The embedding seam fails loudly when unwired. Installed here rather
+ // than relied upon from another test: `install_for_tests` is
+ // `Once`-guarded, so a test that omits it passes only while some
+ // earlier test in the same binary happened to run first.
+ crate::openhuman::memory::host_impls::install_for_tests();
let _serialised = module_guard().await;
use rusqlite::params;
use tinymemory_core::store::trees::store as tree_store;
diff --git a/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs b/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs
index 6cfcf51193..04c03d5545 100644
--- a/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs
+++ b/src/openhuman/integrations/composio/ops_tests_part_02_tests.rs
@@ -7,6 +7,11 @@ use super::*;
/// tree, the summary row, AND the seal-produced content file away.
#[tokio::test]
async fn composio_delete_connection_clear_memory_cascades_live_sealed_tree_and_file() {
+ // The embedding seam fails loudly when unwired. Installed here rather
+ // than relied upon from another test: `install_for_tests` is
+ // `Once`-guarded, so a test that omits it passes only while some
+ // earlier test in the same binary happened to run first.
+ crate::openhuman::memory::host_impls::install_for_tests();
let _serialised = module_guard().await;
use tinymemory_core::store::chunks::store::{
get_summary_content_pointers, upsert_staged_chunks_tx,
@@ -138,6 +143,11 @@ async fn composio_delete_connection_clear_memory_cascades_live_sealed_tree_and_f
#[tokio::test]
async fn composio_delete_connection_clear_memory_keeps_other_gmail_connections() {
+ // The embedding seam fails loudly when unwired. Installed here rather
+ // than relied upon from another test: `install_for_tests` is
+ // `Once`-guarded, so a test that omits it passes only while some
+ // earlier test in the same binary happened to run first.
+ crate::openhuman::memory::host_impls::install_for_tests();
let _serialised = module_guard().await;
let app = Router::new()
.route(