Skip to content

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

test(embed): extend lease ttl in profile host capabilities scenario

Steven Enamakele809ec7474ae
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index 3e3bbb673e..51d3045813 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -147,6 +147,9 @@ async fn scenario() {
let factory_sessions = sessions.clone();
let engine = Arc::new(ReferenceEngine::new());
let runtime = ProfileRuntime::builder(SaasConfig::new(root.path()))
+ // Keep automatic renewals beyond this bounded scenario so the final
+ // synthetic expiry check cannot race a heartbeat.
+ .configure(|config| config.lease_ttl_secs = 3600)
.tools(move |turn| {
let profile = openhuman_embed::current_tenant().unwrap().profile.unwrap();
factory_sessions