Skip to content

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

test(embed): add saas profile coverage

Steven Enamakelda7b31e74ce1
diff --git a/crates/openhuman-embed/tests/saas_profiles.rs b/crates/openhuman-embed/tests/saas_profiles.rs
index 8798bf107f..75e11d6755 100644
--- a/crates/openhuman-embed/tests/saas_profiles.rs
+++ b/crates/openhuman-embed/tests/saas_profiles.rs
@@ -115,6 +115,10 @@ async fn scenario() {
assert!(bob_t1.contains("bob's grocery list"), "{bob_t1}");
assert!(!bob_t1.contains("alice's secret plan"), "{bob_t1}");
+ for i in 0..10 {
+ eprintln!("DBG t={i} ctx_count={} in_use={}", std::sync::Arc::strong_count(alice_h.context()), alice_h.context().tenant_in_use());
+ tokio::time::sleep(Duration::from_millis(500)).await;
+ }
// ── a handle holds its profile ──────────────────────────────────────
let held = profiles.release(&alice.profile_id).await;
assert!(