Skip to content

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

test(profiles): simplify lease test provisioning assertion

Steven Enamakel15eca81febb3
diff --git a/crates/openhuman-core/src/profiles/lease_tests.rs b/crates/openhuman-core/src/profiles/lease_tests.rs
index cf6adb0c87..4a4263209e 100644
--- a/crates/openhuman-core/src/profiles/lease_tests.rs
+++ b/crates/openhuman-core/src/profiles/lease_tests.rs
@@ -58,11 +58,7 @@ 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");
- let provisioned = a.provision(&alice).await;
- if let Err(error) = &provisioned {
- eprintln!("lease test provision error: {error}");
- }
- assert!(provisioned.unwrap());
+ assert!(a.provision(&alice).await.unwrap());
assert!(
!b.provision(&alice).await.unwrap(),
"the registry is shared: node b sees alice provisioned"