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 for embedding configs

Steven Enamakel4b2ad2b9a58c
diff --git a/crates/openhuman-embed/tests/saas_profiles.rs b/crates/openhuman-embed/tests/saas_profiles.rs
index ca49d43163..c58f05dacb 100644
--- a/crates/openhuman-embed/tests/saas_profiles.rs
+++ b/crates/openhuman-embed/tests/saas_profiles.rs
@@ -67,6 +67,9 @@ async fn scenario() {
let bob_h = profiles.open("bob").await.expect("open bob");
assert_ne!(alice_h.workspace_dir(), bob_h.workspace_dir());
+ eprintln!("DBG after-open in_use={}", alice_h.context().tenant_in_use());
+ let _ = alice_h.threads().await;
+ eprintln!("DBG after-threads in_use={}", alice_h.context().tenant_in_use());
let a = tokio::time::timeout(TURN, alice_h.chat("t1", "alice's secret plan"))
.await
.expect("alice's turn finishes")
@@ -115,7 +118,7 @@ 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..120 {
+ for i in 0..4 {
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;
}