Skip to content

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

test(memory): publish policy before loading fixture\n\n

Steven Enamakel74fdfe7f4f56
diff --git a/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rs b/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rs
index 1403cafe73..667e02b6d6 100644
--- a/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/memory_sync_round23_raw_coverage_e2e.rs
@@ -198,6 +198,13 @@ async fn profile_persistence_loads_matches_renders_and_deletes_connected_identit
// the release-metadata resolver.
config.modules.enabled = true;
persist_config(&config).await;
+ // `ensure_loaded` binds the module through the boot-time policy, which is
+ // deliberately process-global. This raw-coverage module runs in its own
+ // test process, so publish the same config here just as normal boot does.
+ #[cfg(feature = "modules")]
+ openhuman_core::openhuman::modules::memory::set_modules_policy(std::sync::Arc::new(
+ config.clone(),
+ ));
openhuman_core::openhuman::modules::ops::ensure_loaded(&config, "tinymemory")
.await
.expect("load local TinyMemory test module");