Skip to content

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

test(embed): cover expired profile memory failing closed

Steven Enamakelb056a07edbdd
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index b9f25c3d21..e73743a2e8 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -213,6 +213,10 @@ async fn scenario() {
.as_deref(),
Some(format!("user:{user}").as_str())
);
+ let profile = handle.scope(async { openhuman_core::profiles::host::current().unwrap() }).await;
+ profile.fence.renewed(0);
+ assert!(!handle.scope(async { openhuman_core::memory::engine::is_on(handle.context().embedder_config().unwrap()) }).await, "expired profile memory must fail closed");
+ profile.fence.renewed(u64::MAX);
tokio::time::timeout(
Duration::from_secs(30),
handle.chat(