Skip to content

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

fix(test): drop unused config when modules feature is disabled

Steven Enamakel335f4cb98a3b
diff --git a/tests/in_process/memory_graph_roundtrip_e2e.rs b/tests/in_process/memory_graph_roundtrip_e2e.rs
index 1512a22672..79c8e1a0d3 100644
--- a/tests/in_process/memory_graph_roundtrip_e2e.rs
+++ b/tests/in_process/memory_graph_roundtrip_e2e.rs
@@ -116,7 +116,7 @@ fn ensure_memory_seams(workspace: &Path) {
.name("memory-graph-roundtrip-seams".to_string())
.stack_size(8 * 1024 * 1024)
.spawn(move || {
- let _config = Arc::new(openhuman_core::config::Config {
+ let config = Arc::new(openhuman_core::config::Config {
workspace_dir: workspace.clone(),
action_dir: workspace.clone(),
config_path: workspace.join("config.toml"),
@@ -124,6 +124,8 @@ fn ensure_memory_seams(workspace: &Path) {
});
#[cfg(feature = "modules")]
openhuman_core::modules::memory::set_modules_policy(config);
+ #[cfg(not(feature = "modules"))]
+ drop(config);
})
.expect("spawn memory graph seam installer")
.join()
diff --git a/tests/memory_roundtrip_e2e.rs b/tests/memory_roundtrip_e2e.rs
index 39090e3cef..fde794427a 100644
--- a/tests/memory_roundtrip_e2e.rs
+++ b/tests/memory_roundtrip_e2e.rs
@@ -74,7 +74,7 @@ fn ensure_memory_seams(workspace: &Path) {
.name("memory-roundtrip-seams".to_string())
.stack_size(8 * 1024 * 1024)
.spawn(move || {
- let _config = Arc::new(openhuman_core::config::Config {
+ let config = Arc::new(openhuman_core::config::Config {
workspace_dir: workspace.clone(),
action_dir: workspace.clone(),
config_path: workspace.join("config.toml"),
@@ -82,6 +82,8 @@ fn ensure_memory_seams(workspace: &Path) {
});
#[cfg(feature = "modules")]
openhuman_core::modules::memory::set_modules_policy(config);
+ #[cfg(not(feature = "modules"))]
+ drop(config);
})
.expect("spawn memory roundtrip seam installer")
.join()
diff --git a/tests/support/memory_rpc.rs b/tests/support/memory_rpc.rs
index 533706c289..be33ac0598 100644
--- a/tests/support/memory_rpc.rs
+++ b/tests/support/memory_rpc.rs
@@ -28,9 +28,11 @@ pub fn ensure_memory_seams() {
.name("memory-e2e-seams".to_string())
.stack_size(8 * 1024 * 1024)
.spawn(|| {
- let _config = Arc::new(openhuman_core::config::Config::default());
+ let config = Arc::new(openhuman_core::config::Config::default());
#[cfg(feature = "modules")]
openhuman_core::modules::memory::set_modules_policy(config);
+ #[cfg(not(feature = "modules"))]
+ drop(config);
})
.expect("spawn memory seam installer")
.join()