Skip to content

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

test(ops_tests_default_registry_tests): update test for memory tool registration

Steven Enamakeld8adfd4049f0
diff --git a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs
index c8a0a1a7b8..1b4272169d 100644
--- a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs
@@ -1,9 +1,10 @@
use super::*;
#[test]
-fn all_tools_registers_collapsed_memory_and_search_tools() {
+fn all_tools_registers_the_memory_tool_while_memory_is_on() {
let tmp = TempDir::new().unwrap();
let security = Arc::new(SecurityPolicy::default());
let cfg = test_config(&tmp);
+ crate::memory::test_fixtures::bind_reference(&cfg);
let browser = BrowserConfig::default();
let http = crate::config::HttpRequestConfig::default();
let tools = all_tools(
@@ -20,15 +21,11 @@ fn all_tools_registers_collapsed_memory_and_search_tools() {
let memory = tools
.iter()
.find(|tool| tool.name() == crate::memory::tools::MEMORY_TOOL_NAME)
- .expect("collapsed memory tool must be registered");
+ .expect("the memory tool must be registered while memory is on");
assert_eq!(
tool_group(memory.name()),
crate::core::all::DomainGroup::Memory
);
- assert_eq!(
- tool_capability(memory.name()),
- Some(tinymemory_api::capabilities::Capability::Core)
- );
// The search half of deferral is the harness's intrinsic bridge, never a
// registered tool: a host `tool_search` would shadow it.
assert!(!tools