Skip to content

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

test(embed): assert global reach is refused in host capability profile

Steven Enamakel1697ae288d9c
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index 181c8d9622..b77f80de16 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -389,13 +389,20 @@ async fn scenario() {
.unwrap();
}
for handle in &handles {
+ assert!(
+ handle
+ .call::<Value>(
+ "openhuman.memory_items_list",
+ json!({"filter":{"reach":{"at":"","descendants":true,"inherit":true}}})
+ )
+ .await
+ .is_err(),
+ "a global reach must be refused"
+ );
let response: Value = tokio::time::timeout(Duration::from_secs(30), async {
loop {
let response: Value = handle
- .call(
- "openhuman.memory_items_list",
- json!({"filter":{"reach":{"at":"","descendants":true,"inherit":true}}}),
- )
+ .call("openhuman.memory_items_list", json!({}))
.await
.unwrap();
if response