Skip to content

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

chore: files changed crates/openhuman-core/src/profiles/host_tests.rs,crates/openhuman-core/src/prof

Steven Enamakel1438f5e56cd8
diff --git a/crates/openhuman-core/src/profiles/host_tests.rs b/crates/openhuman-core/src/profiles/host_tests.rs
index 4c0949b740..c8dda5762b 100644
--- a/crates/openhuman-core/src/profiles/host_tests.rs
+++ b/crates/openhuman-core/src/profiles/host_tests.rs
@@ -74,8 +74,12 @@ async fn inspecting_an_unprovisioned_profile_does_not_run_storage_migrations() {
(Some(before), Some(after)) => assert!(Arc::ptr_eq(before, after)),
_ => panic!("doctor inspection must not publish a process default context"),
}
- let lease_key =
- tinystoragedrivers::Key::of([crate::storage::lease::LEASE_OWNER, id.as_str()]).unwrap();
+ let lease_key = tinystoragedrivers::Key::new(format!(
+ "{}:{}",
+ crate::storage::lease::LEASE_OWNER,
+ id.as_str()
+ ))
+ .unwrap();
assert!(
docs.get(crate::storage::lease::LEASE_COLLECTION, lease_key.as_str())
.await
diff --git a/crates/openhuman-core/src/profiles/registry_tests.rs b/crates/openhuman-core/src/profiles/registry_tests.rs
index 90943a474e..42966b30d4 100644
--- a/crates/openhuman-core/src/profiles/registry_tests.rs
+++ b/crates/openhuman-core/src/profiles/registry_tests.rs
@@ -96,11 +96,11 @@ async fn doctor_lookup_of_an_unknown_profile_does_not_declare_cluster_schema() {
.unwrap()
.is_none());
- assert!(docs
+ assert!(docs.documents()
.validate_collection_spec(&registry_spec)
.await
.is_err());
- assert!(docs
+ assert!(docs.documents()
.validate_collection_spec(&lease_spec)
.await
.is_err());