Skip to content

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

test(profiles): log provision errors in lease test

Steven Enamakel9782a1c9178b
diff --git a/crates/openhuman-core/src/profiles/lease_tests.rs b/crates/openhuman-core/src/profiles/lease_tests.rs
index 4a4263209e..cf6adb0c87 100644
--- a/crates/openhuman-core/src/profiles/lease_tests.rs
+++ b/crates/openhuman-core/src/profiles/lease_tests.rs
@@ -58,7 +58,11 @@ async fn a_profile_open_on_one_node_is_refused_on_another_naming_the_holder() {
node(tmp.path(), "node-b", Some(&backend)),
);
let alice = profile("alice");
- assert!(a.provision(&alice).await.unwrap());
+ let provisioned = a.provision(&alice).await;
+ if let Err(error) = &provisioned {
+ eprintln!("lease test provision error: {error}");
+ }
+ assert!(provisioned.unwrap());
assert!(
!b.provision(&alice).await.unwrap(),
"the registry is shared: node b sees alice provisioned"