Skip to content

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

chore: files changed crates/openhuman-core/src/core/jsonrpc_tests.rs,src/openhuman/agent/agent_tests

Steven Enamakel4cc0eb318f91
diff --git a/crates/openhuman-core/src/core/jsonrpc_tests.rs b/crates/openhuman-core/src/core/jsonrpc_tests.rs
index c8c16b7ccc..2da2f7544e 100644
--- a/crates/openhuman-core/src/core/jsonrpc_tests.rs
+++ b/crates/openhuman-core/src/core/jsonrpc_tests.rs
@@ -178,15 +178,6 @@ fn learning_subscriber_registration_is_idempotent_after_success() {
assert!(!learning_first_time_when_bus_ready(&completed, true));
}
-#[test]
-fn domain_subscriber_registration_wrapper_uses_the_global_bus() {
- use crate::core::all::DomainGroup;
-
- crate::core::event_bus::init_global(crate::core::event_bus::DEFAULT_CAPACITY);
- assert!(group_first_time(DomainGroup::Media));
- assert!(!group_first_time(DomainGroup::Media));
-}
-
/// #5027 — the tool-execution timeout must be seeded on the always-on core boot
/// path (`register_domain_subscribers`), NOT inside
/// `channels::runtime::startup::start_channels`, which is skipped for
diff --git a/src/openhuman/agent/agent_tests_part_03_tests.rs b/src/openhuman/agent/agent_tests_part_03_tests.rs
index 27c304219a..d26588ee5f 100644
--- a/src/openhuman/agent/agent_tests_part_03_tests.rs
+++ b/src/openhuman/agent/agent_tests_part_03_tests.rs
@@ -54,7 +54,7 @@ async fn poll_for_stored_user_message(mem: &Arc<dyn Memory>) -> Vec<String> {
async fn an_external_channel_turn_stores_the_user_message() {
use crate::openhuman::agent::turn_origin::{with_origin, AgentTurnOrigin};
- let (mem, _tmp) = make_sqlite_memory();
+ let (mem, _tmp) = make_retaining_memory();
let provider = Arc::new(ScriptedProvider::new(vec![text_response("got it")]));
let (mut agent, _tmp2) = build_agent_with_memory(provider, vec![], mem.clone(), true);
@@ -83,7 +83,7 @@ async fn an_external_channel_turn_stores_the_user_message() {
async fn a_direct_chat_turn_stores_the_user_message() {
use crate::openhuman::agent::turn_origin::{with_origin, AgentTurnOrigin};
- let (mem, _tmp) = make_sqlite_memory();
+ let (mem, _tmp) = make_retaining_memory();
let provider = Arc::new(ScriptedProvider::new(vec![text_response("noted")]));
let (mut agent, _tmp2) = build_agent_with_memory(provider, vec![], mem.clone(), true);
@@ -112,7 +112,7 @@ async fn an_automation_turn_does_not_store_its_prompt_as_the_users_memory() {
with_origin, AgentTurnOrigin, TrustedAutomationSource,
};
- let (mem, _tmp) = make_sqlite_memory();
+ let (mem, _tmp) = make_retaining_memory();
let provider = Arc::new(ScriptedProvider::new(vec![text_response("goals updated")]));
let (mut agent, _tmp2) = build_agent_with_memory(
provider,
@@ -145,7 +145,7 @@ async fn an_automation_turn_does_not_store_its_prompt_as_the_users_memory() {
/// quietly write host text into the user's memory.
#[tokio::test]
async fn an_unscoped_turn_stores_no_user_message() {
- let (mem, _tmp) = make_sqlite_memory();
+ let (mem, _tmp) = make_retaining_memory();
let provider = Arc::new(ScriptedProvider::new(vec![text_response("ok")]));
let (mut agent, _tmp2) = build_agent_with_memory(provider, vec![], mem.clone(), true);